-
Notifications
You must be signed in to change notification settings - Fork 66
Description
Description
Hello, I am trying to preserve the facets from my RefinementList when I select one, but the ones which are not selected disappear.
Let's say we have 3 categories - clothes, shoes, and accessories, clicking on "clothes" would hide shoes and accessories until I unselect clothes
I saw in the README that you could provide a keepZeroFacets property to the client since version 0.6.2
I updated my client, set the property to true, and also made sure that my attributes are filterable in the backend. Still, I can't retain the non-chosen categories in the RefinementList
Expected behavior
As the documentation from README states, I expected that after a refinement, facets/filters with 0 matches would still appear in the list
Current behavior
As described, currently when refinement finishes, my RefinementList the items prop contains only the currentRefinement (for example the selected category - clothes)
Steps to reproduce
Thankfully I managed to reproduce this in a code sandbox here
Environment
- OS: EndeavourOS
- Browser: Chrome Version 102.0.5005.115 (Official Build) (64-bit)
- Meilisearch version: 0.26.1
- instant-meilisearch version: 0.6.2