Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dev-ishwar opened this issue Oct 11, 2024 · 1 comment
Open

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

dev-ishwar opened this issue Oct 11, 2024 · 1 comment

Comments

@dev-ishwar
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants