feat(multi-select): add collapseSelectionAfter prop#1735
Merged
eirikhaugstulen merged 2 commits intomasterfrom Apr 16, 2026
Merged
feat(multi-select): add collapseSelectionAfter prop#1735eirikhaugstulen merged 2 commits intomasterfrom
eirikhaugstulen merged 2 commits intomasterfrom
Conversation
When the number of selected items exceeds the given threshold, individual chips are replaced with "X selected" text.
Contributor
|
🚀 Deployed on https://pr-1735--dhis2-ui.netlify.app |
Member
|
Nice suggestion @eirikhaugstulen, I think this is a helpful addition to the component. I do think it is important to frame this as a robustness or resilience feature, rather than an endorsement of using this component for very large selections. If a field often ends up with many selected items, a Transfer or an always-open SelectPanel might be a better fit. But this feature does help prevent an awkward UI when a multiselect occasionally has many selections. This can be explained in the component documentation, I'm happy to add that as a follow up to this. |
KaiVandivier
approved these changes
Apr 14, 2026
|
dhis2-bot
added a commit
that referenced
this pull request
Apr 16, 2026
# [10.13.0](v10.12.13...v10.13.0) (2026-04-16) ### Features * **multi-select:** add collapseSelectionAfter prop ([#1735](#1735)) ([fab1525](fab1525))
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
collapseSelectionAfterprop toMultiSelectthat replaces individual chips with "X selected" text once the selection count exceeds the given thresholddemo_threshold3.mp4