Skip to content

Selecting category does not update results #1306

Open
@christine927t

Description

@christine927t

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions