trevoreyre / autocomplete

Accessible autocomplete component for vanilla JavaScript and Vue.
https://autocomplete.trevoreyre.com
MIT License
434 stars 75 forks source link

Fix autocomplete fired again when select one item from suggestion list #136

Open viethang opened 2 years ago

viethang commented 2 years ago

It happens on some recent Firefox version on Android (e.g. 99.0.1) that when we select one item from suggestion list, handleInput is triggered again with the selected value which call updateResults again. With this pull request, we use a waitOnInput property on AutocompleteCore to control updateResults triggering.