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 detect empty input? #33

Closed leoleung0102 closed 2 years ago

leoleung0102 commented 2 years ago

Hello, I am using this library for handling autocomplete, but I would like to disable the search button when no input, but I find out when there is no input , it will not trigger handleOnSearch. Any solution? Thanks

sickdyd commented 2 years ago

@leoleung0102 Hello! Please take a look at this issue, it seems that it was solved there. Let me know if it does not help.

sickdyd commented 2 years ago

Closed because of no reply and potentially solved in another issue.