Search code examples
javascriptsearchalgoliainstantsearch

algolia instantsearch refinementList item toogle when search for something else


I have a problem, when you make a search a select an item from the refinementList and without removing the selected item search for something else the selected item disappears from list due to the limit it have, how can i set it to always show the selected item of the refinementList?

With the refinementList item selected With the refinementList item selected

Search for something else but the item is gone search for something else but the item is gone


Solution

  • This is currently not doable without creating a custom widget.

    The currentRefinedValues widget partly solves this issue though, since it lists all checked refinements.

    I've opened an issue on instantsearch.js's repo about this, I think this should be better suited than StackOverflow for this request.