Add touch start event for mobile autocompleter

pull/6181/head
Henriette Dinger 7 years ago
parent 9c18731a7b
commit 962d55a239
  1. 5
      frontend/app/components/projects/project-menu-autocomplete/project-menu-autocomplete.component.ts

@ -124,6 +124,11 @@ export class ProjectMenuAutocompleteController extends ILazyAutocompleterBridge<
.text(item.label)
.appendTo(div);
// Needed for iOS to ensure that the link is executed on the first click (touch)
link.on('touchstart',(evt:JQueryEventObject) => {
this.$window.location.href = this.projectLink(item.object.identifier);
});
// When in hierarchy, indent
if (item.object.level > 0) {
link

Loading…
Cancel
Save