metonym / svelte-typeahead

Accessible, fuzzy search typeahead component
https://metonym.github.io/svelte-typeahead
MIT License
222 stars 18 forks source link

fix(typeahead): hover should update the selected index #48

Closed metonym closed 2 years ago

metonym commented 2 years ago

Hovering over a result item should update the selected index.

For example, the first result is highlighted by default. However, if I hover over the third result and press "Enter," the third result should be selected. Using keyboard navigation should also start the navigation at the hovered index.