blur event should close dropdown
Closed this issue · 1 comments
lkretzschmar commented
When I type something in the inputbox, teh dropdown appears. If I then Tab to the next element, the dropdown does not close.
This is reproducible on the demo page:
- Go to https://sickdyd.github.io/react-search-autocomplete/
- Click on the square input box by the Titanic prompt.
- Type abc
- See dropdown appear
- Press Tab key
- See dropdown stay open
Expected behavior
Expect dropdown to close when input field loses focus.
sickdyd commented
@lkretzschmar Fixed in the latest version!