instantsearch icon indicating copy to clipboard operation
instantsearch copied to clipboard

Let `refine` accept undefined to remove a selected value

Open bobylito opened this issue 7 years ago • 1 comments

When implementing a connector like menu it's hard to know what to do to remove a value. The refine is implemented like a toggle but it's not obvious. If we could give a specific value to refine that would help a lot documentation-wise and implementation-wise (no need to store the value).

Impacted connectors:

  • [ ] menu
  • [ ] hierarchicalMenu
  • [ ] refinementList
  • [ ] hitsPerPage (this one could work but we'd need to document it)
  • [ ] numericRefinementList
  • [ ] numericSelector

bobylito avatar Sep 05 '17 08:09 bobylito

Like React InstantSearch, the refinement value in a refinement list could accept the whole list to apply. This way you can easily select multiple values.

Haroenv avatar Oct 08 '19 12:10 Haroenv