When using clearAll or currentRefinedValues's clear all button, it should be possible to avoid clearing some filters.
The use case is to be able to preselect some filters #1061 while not displaying them in the interface and avoid having them cleared by the user.
Also see #1063 and #740
If we add an excludeAttributes list option to clearAll and currentRefinedValues, what would be the expected UI for currentRefinedValues? Should the excluded attributes be hidden or visible but not clickable? Or it could be another option :-)
@rogerroelofs I would say hidden.
With currentRefinedValues, we'd also have to consider how this interacts with options.attributes and options.onlyListedAttributes.
@vvo this has been closed but only half resolved: the currentRefinedValues widget doesn't offer anything similar to excludeAttributes but it really is needed.
It's a real pain to have to list everything manually in the attributes option and use onlyListedAttributes: true.
There's now transformItems, excludedAttributes and includedAttributes in v3, see #3264 for more info
Most helpful comment
@vvo this has been closed but only half resolved: the currentRefinedValues widget doesn't offer anything similar to
excludeAttributesbut it really is needed.It's a real pain to have to list everything manually in the
attributesoption and useonlyListedAttributes: true.