Skip to content

Multiselect:Checkbox in filter template wrong behavior #3514

@Carmen1968

Description

@Carmen1968

Describe the bug

I'm using the Multiselect component with a filter template, this one includes a selectAll checkbox. In the Checkbox onChange event I do not get the expected result. The attached image shows how the implementation of the checkbox in the Multiselect differs from the implementation of the checkbox, causing the opposite result in this case.

check

Reproducer

https://codesandbox.io/embed/relaxed-bird-osip4u?fontsize=14&hidenavigation=1&theme=dark

PrimeReact version

8.6.1

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

Chrome

Steps to reproduce the behavior

  1. check SelectAll checkbox

Expected behavior

All items selected

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution: By DesignThe behavior in the issue is by design and the component exhibits the expected behaviorResolution: WorkaroundIssue or pull request contains a workaround. It needs to be reviewed further by Core Team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions