2
0
mirror of https://github.com/devbridge/jQuery-Autocomplete.git synced 2024-12-23 03:18:55 +00:00

fix blurring of menu

if you click and hold (without releasing mouse), the dropdown will still blur/hide. This is because the order of events goes

mousedown -> blur -> mouseup -> click

So basically you must click "quickly" or lose the menu
This commit is contained in:
719media 2017-04-19 14:54:28 -07:00 committed by GitHub
parent 59a1293774
commit 63b5d6e3a2

View File

@ -198,7 +198,7 @@
that.select($(this).data('index'));
});
container.on('click.autocomplete', function () {
container.on('mousedown.autocomplete', function () {
clearTimeout(that.blurTimeoutId);
})