[28172] Fix invalid selector for touchstart

https://community.openproject.com/wp/28172

[ci skip]
pull/6508/head
Oliver Günther 6 years ago
parent b9f77916c0
commit ec36c2cde1
No known key found for this signature in database
GPG Key ID: A3A8BDAD7C0C552C
  1. 2
      frontend/src/app/components/projects/project-menu-autocomplete/project-menu-autocomplete.component.ts

@ -261,7 +261,7 @@ export class ProjectMenuAutocompleteComponent extends ILazyAutocompleterBridge<I
return true;
})
// Needed for iOS to ensure that the link is executed on the first click (touch)
.on('touchstart', 'ui-menu-item a', (evt:JQueryEventObject) => {
.on('touchstart', '.ui-menu-item a', (evt:JQueryEventObject) => {
window.location.href = (evt.target as HTMLAnchorElement).href;
});
}

Loading…
Cancel
Save