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 (group) SelectAll checked when all items in first group are selected #4535

Closed
pingxiong620 opened this issue Jun 22, 2023 · 0 comments · Fixed by #4547
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@pingxiong620
Copy link

Describe the bug

Create a React MultiSelect with group options, when all the children under the first group are selected, the SelectAll checkbox on the header gets selected as well even though items under other groups are unselected. This issue can be easily reproduced on the Demo page
https://primereact.org/multiselect/
or
https://www.primefaces.org/primereact-v8/multiselect/

Reproducer

No response

PrimeReact version

8.x and 9.x, all versions

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Navigate to React MultiSelect component demo page, either 8.x or 9.x
    https://www.primefaces.org/primereact-v8/multiselect/
    or
    https://primereact.org/multiselect/
  2. Locate the Grouped MultiSelect
  3. Click to open the Grouped Multiselect
  4. Select all 4 cities under Germany
  5. Observe that the SelectAll checkbox is selected.

Expected behavior

Since only children under the first city get selected, children under other cities have not been selected, the SelectAll checkbox should not be selected.
MultiSelect-group

@pingxiong620 pingxiong620 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jun 22, 2023
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jun 22, 2023
@melloware melloware added this to the 9.6.0 milestone Jun 26, 2023
@melloware melloware self-assigned this Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants