react-search-autocomplete
react-search-autocomplete copied to clipboard
No Results on first time search (paste something in search box)
Describe the bug When searching for the first time (like paste something in the input), no results are shown in the suggestions even though API call was made and items were updated in the state.
Stackblitz example Dungeons and Dragons spells API is used in this example so search with any spell. https://stackblitz.com/edit/react-vcgxys?file=src%2FAutocomplete.js
To Reproduce Steps to reproduce the behavior:
- Paste something in the search (e.g. acid)
- shows No Results
Expected behavior It should show the suggestions based on API response.
Screenshots
As it shows in the console, there are two items available.
Additional context NA