Skip to content

feat(multiselect): Add property to append current selection instead of replacing it #18078

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nook24
Copy link

@nook24 nook24 commented Apr 14, 2025

Defect Fixes

Currently when filtering a MultiSelect element, PrimeNG will truncate the currently selected elements when the "Select All" checkbox gets used.

Please see #18062 for a more detailed description of the behavior

Feature Requests

This PR introduces a new property appendPreviouslySelected to the multiselect component. By default, the value is false to keep the current behavior the default behavior.

When appendPreviouslySelected=true the "Select All" checkbox will append the options to to current selection.

This makes it possible to:

  1. Select New York and Rome
  2. Search for a use "Select All"
  3. Istanbul and Paris will be appended to already selected New York and Rome

Please see this PR as an example implementation. Feel free to merge this or implement it by yourself to keep the API similar across all PrimeNG flavors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant