react-search-autocomplete icon indicating copy to clipboard operation
react-search-autocomplete copied to clipboard

No search results when using inputSearchString

Open defser opened this issue 3 years ago • 1 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.

defser avatar Jun 25 '22 18:06 defser

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

defser avatar Jun 25 '22 19:06 defser

@defser Hello! Fixed in version 8.0.0!

sickdyd avatar Sep 23 '22 23:09 sickdyd