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

No Results on first time search (paste something in search box)

Open dev-ishwar opened this issue 1 year ago • 0 comments

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:

  1. Paste something in the search (e.g. acid)
  2. 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. image image

Additional context NA

dev-ishwar avatar Oct 11 '24 13:10 dev-ishwar