Programmatically selected disjunctive facets hidden under +More
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 383
- PR merge metrics
- No merged PRs in 30d
Description
**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 `` component.
**Expected behavior**
The selected facet value(s) should always be visible.
**Screenshots**
Given a facet with a large number of results:

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

**Which backends and packages are you using:**
Backend: Elasticsearch
Packages: react-search-ui
Contributor guide
Research direction
Start by tracing the react-search-ui component and the addFilter method for disjunctive facets, using the Elasticsearch case described in the issue. Confirm how the facet list is limited behind + More, then verify that programmatically selected values remain visible without expanding it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elasticsearch, react, typescript
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100