sickdyd/react-search-autocomplete

No search results when using inputSearchString

Closed this issue · 2 comments

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 example with the problem you would like to have solved.](https://codesandbox.io/embed/icy-dust-dhi3gc?fontsize=14&hidenavigation=1&theme=dark)

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.

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

@defser Hello! Fixed in version 8.0.0!