search-ui icon indicating copy to clipboard operation
search-ui copied to clipboard

Programmatically selected disjunctive facets hidden under +More

Open McManning opened this issue 3 years ago • 2 comments

Describe the bug

When adding a filter against a disjunctive facet via the addFilter method, the selected value may be hidden under the + More link when rendering through the <Facet> component.

Expected behavior

The selected facet value(s) should always be visible.

Screenshots

Given a facet with a large number of results:

image

After executing something like addFilter('category.keyword', 'Resource Collection') the selected 'Resource Collection' facet will not be visible until clicking + More:

image

Which backends and packages are you using: Backend: Elasticsearch Packages: react-search-ui

McManning avatar Jun 27 '22 13:06 McManning

Agreed. Two ways we could improve this:

  • having a "selected filters" component which shows all filters that have been applied across the search. Searchkit does this https://demo.searchkit.co/type/series_episode?size=10
  • having the selected filters rendered at the top.

Will wait for design to feedback any suggestions.

joemcelroy avatar Jun 28 '22 03:06 joemcelroy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Is this issue still important to you? If so, please leave a comment and let us know. As always, thank you for your contributions.

botelastic[bot] avatar Aug 27 '22 04:08 botelastic[bot]