sickdyd / react-search-autocomplete

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

If inputSearchString is given, but component is not focused, the dropdown appears #103

Open matteotrap opened 1 year ago

matteotrap commented 1 year ago

Steps to Reproduce:

Expected Result: The dropdown should not appear, as the input field is not focused The dropdown should appear only if the component is focused.

Actual Result: The dropdown appears despite the input field not being focused

jwj777 commented 1 year ago

When I enter a search and then click somewhere else, the drop-down disappears for me.

lkretzschmar commented 1 year ago

It disappears if you click elsewhere, but not if you Tab to the next field. The dropdown stays open.