sickdyd / react-search-autocomplete

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

Show list on click at input #45

Closed bismarck4lves closed 2 years ago

bismarck4lves commented 2 years ago

In the Documentation, we have a variable items with the values that will be presented when typing. Since we have these values, it would be interesting to show these preloaded values when clicking on the input. Is it possible to do that?

PunkSage commented 2 years ago

I don't think it is possible with the current code. I can fork this repository and think about it.

sickdyd commented 2 years ago

@bismarck4lves @PunkSage I added the feature in version 7.1.0, to enable it you will need to pass this prop as true:

showItemsOnFocus={true}