sickdyd / react-search-autocomplete

A search box that filters the provided array of objects
https://sickdyd.github.io/react-search-autocomplete
MIT License
216 stars 82 forks source link

Search should not autoselect item from drop down list #80

Closed pkgitlab closed 1 year ago

pkgitlab commented 2 years ago

We need a search where the autosuggestion may or may not be used by user. So we want to select nothing unless the user has clicked on a suggestion . Otherwise what the user has typed in textbox is the search term. It seems like with the sample code when we press enter while typing something is picked from drop down list and used for search. How can we implement the search box like we see on Google where only selected item is populated in search box.

Thanks for this library, really appreciate the efforts!

sickdyd commented 1 year ago

Fixed in the latest version!