appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.89k stars 466 forks source link

Allow SelectedFilters to limit which components are cleared #345

Closed dubcanada closed 6 years ago

dubcanada commented 6 years ago

Issue Type: enhancement

Platform: Web

Description: Allow SelectedFilters to specific which components get cleared

Minimal reproduction of the problem with instructions: Right now if you have selectedfilters and click Clear filters it clears all filters, but if you have a filter that you don't want ever cleared it clears that as well.

**Reactivesearch version:latest

Browser: All

Anything else: Nope!

metagrover commented 6 years ago

Currently, I don't think there is any to get around this with Clear All, you can although hide Clear All button with showClearAll set as false and only show the desired clearable filters as tags.

siddharthlatest commented 6 years ago

Based on a recent issue discussion, we should allow custom rendering of SelectedFilters so the user has a choice on how the filters can be cleared.

siddharthlatest commented 6 years ago

There is already an open issue with a spec on how to do this #121, closing this in favor of that.