jQuery-Autocomplete icon indicating copy to clipboard operation
jQuery-Autocomplete copied to clipboard

Clicking on the list does not select the item

Open ranchmed opened this issue 4 years ago • 2 comments

Clicking an item on the selection list sometimes does not select the item. You need to click fast to select the item. If you are slow releasing the mouse button on the click, the item is not selected.

I noticed that this problem does not exist on the demo website. How can I fix this so that the item is selected regardless of how fast the mouse button is released during a click operatoin?

ranchmed avatar Dec 14 '20 04:12 ranchmed

Good catch, I was hunting this issue for months! This behavior was introduces here: https://github.com/devbridge/jQuery-Autocomplete/commit/d556a873e7fa6138e4f630d3859f9aed9b975a29

Maybe we could increase 200 ms to 300-400 ms?

boldtrn avatar Dec 29 '20 17:12 boldtrn

BTW: I think the demo website uses a very old version of the autocomplete, you might not want to check that too closely ;)

boldtrn avatar Dec 29 '20 17:12 boldtrn