Skip to content
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

Multiselect with Grouped Data, select all options #2168

Closed
Rakasch opened this issue Feb 15, 2022 · 0 comments
Closed

Multiselect with Grouped Data, select all options #2168

Rakasch opened this issue Feb 15, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@Rakasch
Copy link
Contributor

Rakasch commented Feb 15, 2022

I'm submitting a ... (check one with "x")

[X ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

CodeSandbox Case (Bug Reports)
https://codesandbox.io/s/grouped-dropdown-vxzwf?file=/src/MultiSelectDemo.vue

Current behavior
I'm using Multiselect Component with grouped data and optionValue="id".
It's working as expected if I select single options.
image

But if I check the "mark all" checkbox, its ignoring the optionValue and optionLabel.
It just inserts the whole objects into the modelValue. And the Labels are all null.
image

Expected behavior
Selecting "mark all" should have the same behaviour as selecting single options.

Minimal reproduction of the problem with instructions
Use Multiselect Component with grouped data and optionValue.
Select "all" options.
image

  • Vue version: 3.X
  • PrimeVue version: 3.4.X
  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
@tugcekucukoglu tugcekucukoglu added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Feb 16, 2022
@tugcekucukoglu tugcekucukoglu added this to the 3.13.0 milestone Mar 11, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Mar 11, 2022
tugcekucukoglu added a commit that referenced this issue Mar 11, 2022
Fixed #2168 - Multiselect with Grouped Data, select all options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants