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

No search results when using inputSearchString #70

Closed defser closed 1 year ago

defser commented 2 years ago

Describe the bug When i use the option inputSearchString to prefill the searchbox i expect that it will display search results, i did not find a option to enable this and did try to make it word programmatically but i cannot get it to search de prefilled query

Codesandbox example Create a [codesandbox](https://codesandbox.io/) example with the problem you would like to have solved.

To Reproduce Steps to reproduce the behavior:

  1. Go to Codesandbox example
  2. Click on search javascript!
  3. Search input it filled but no search results, only after i focus on it and add input then it searches...

Expected behavior When inputSearchString is set at init or afterwards changed it automatically searches that input.

Additional context Would be great to have it as option so the basic functionality does not change.

defser commented 2 years ago

It would be sufficient if there is a working workaround at this moment.

sickdyd commented 1 year ago

@defser Hello! Fixed in version 8.0.0!