[Bug] onSelect not working when tapping on touchpad
Hello. I have a laptop with Windows 10 and a precision-driven touchpad (with gestures). Today I discovered that the autocomplete in my application is broken and that I can't select nothing. After a several tens of minutes of struggling I accidentally found out that onSelect is actually working only if I click on autocomplete suggestion. But if I just tap (not click the touchpad, but just touch it, which recognizes as a click as well in Windows) on touchpad to select any suggestion - it won't work. But on jQuery-Autocomplete's website it behaves normally. I tried to remove CSS styles, checked the documentation for any usefull information but found nothing. Any ideas on why this could be happening? Thanks.
jQuery-Autocomplete ver: 1.4.9
@JamesJGoodwin this piece of jQuery solved the issue for me:
$(document).on('mousedown', '.autocomplete-suggestion', e => {
$(e.target).click();
});
I haven't well tested it yet, but probably the library can rely on mousedown event in a way.