iqbalfn / bootstrap-autocomplete

Bootstrap 4 Input Autocomplete from datalist, ajax ( prefect or realtime )
https://iqbalfn.github.io/bootstrap-autocomplete/
MIT License
16 stars 6 forks source link

option selection #17

Open iamenigma1828 opened 1 year ago

iamenigma1828 commented 1 year ago

When I select option using arrow down and press enter, the value is set to the text field but whenever i clicked on the option value, nothing happens. The pick function is not called when selected via mouse click

iamenigma1828 commented 1 year ago

after playing for some time i found the selection work with double click, how am I suppose to find a work around for single click? Can anyone help me here

iqbalfn commented 1 month ago

can you provide a live example where i can try it by my self. never see that in action.

Lyrth commented 3 weeks ago

can you provide a live example where i can try it by my self. never see that in action.

Hello, this is a pretty big issue for some (or most) laptops with a trackpad, and also as an accessibility requirement.

Clicking on the dropdown item for too long will hide the dropdown but no item will be selected. Meaning, clicks should be quick enough to be able to select, but some laptop trackpads have a too long press duration for single click via tapping. I'd assume double clicking via trackpad works because it'll make shorter presses.

Here's it in action:

lyrth_101124_qyJsNu91cl