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

How to trigger onSearch event when emptying all the text in the search box? #27

Closed clasnake closed 2 years ago

clasnake commented 3 years ago

Currently looks like the onSearch callback is not triggered when emptying all the text by using backspace (instead of triggering the onClear) in the search box. Is it able to allow that to be configurable? Thanks.

sickdyd commented 2 years ago

@clasnake Hello! Try to look into this issue if it helps: https://github.com/sickdyd/react-search-autocomplete/issues/17

Please let me know if not.

clasnake commented 2 years ago

Thanks so much it helps. @sickdyd

sickdyd commented 2 years ago

Closed because fixed ⭐