darrenjennings / vue-autosuggest

🔍 Vue autosuggest component.
https://darrenjennings.github.io/vue-autosuggest
MIT License
621 stars 91 forks source link

Re-opening dropdown with same query starts you at the second option #152

Closed thegregthomp closed 4 years ago

thegregthomp commented 5 years ago

Relevant code or config

What you did: entering input, viewing dropdown, exiting input and re-entering input, if you hit down it starts at the second item in the list and not the first.

What happened:

Reproduction repository: is possible to see on repo demo: https://darrenjennings.github.io/vue-autosuggest/ also visible on algolia demo under autocomplete example: https://www.algolia.com/doc/guides/building-search-ui/widgets/showcase/vue/

Problem description: re-opening dropdown with the same query starts you at the second item in the list

darrenjennings commented 5 years ago

yea good catch. looks like a bug with the hover state, as aria-activedescendant shows that the first option is selected, but it's not highlighted. hitting "enter" even selects the first option.