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

Selecting category does not update results #1306

Open
christine927t opened this issue Feb 21, 2025 · 0 comments
Open

Selecting category does not update results #1306

christine927t opened this issue Feb 21, 2025 · 0 comments

Comments

@christine927t
Copy link

Description

When you search for a category in the autocomplete search bar and then select the category the search results do not update according

Reproduction

[Preview →](https://codesandbox.io/s/github/algolia/autocomplete/tree/next/examples/playground?file=/app.tsx)

Steps

  1. Go to sandbox above
  2. Start typing a word like 'clothing' in the search bar
  3. Click on the category option that appears, should be "T-shirts - Women > Clothing"
  4. Results do not update

I'm having the same issue in my local code and I've added an onSelect function as well as an emit to app.tsx for setInstantSearchUiState but still the results are not updated correctly. I've noticed that selecting any results from recentSearchesPlugin,querySuggestionsPlugin, or querySuggestionPluginInCategory work fine because their code is directly in app.tsx and setInstantSearchUiState is called directly in their onSelect function.

Environment

  • OS: macOs
  • Browser: Chrome
  • Autocomplete version: "@algolia/autocomplete-js": "^1.17.8"
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

1 participant