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

Component: p-treeselect. Selecting filtered checkbox incorrectly selecting higher nodes #15776

Open
AndY322 opened this issue Jun 3, 2024 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@AndY322
Copy link

AndY322 commented Jun 3, 2024

Describe the bug

when using p-treeselect component in checkbox selection mode with filter and filtering child nodes, selecting all filtered nodes - as a result higher nodes selecting as fully selected, but actually they have to be partial selected
image
image

Environment

N/A

Reproducer

No response

Angular version

17.0.7

PrimeNG version

17.12.0

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.11.1

Browser(s)

No response

Steps to reproduce the behavior

  1. Set up p-treeselect with filter and checkbox mode
  2. filter some node with several items to have only one item
  3. select this item
    Result - parent node checked as 'fully' selected

Expected behavior

parent nodes should be marked as 'partial' selected

@AndY322 AndY322 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 3, 2024
@AndY322
Copy link
Author

AndY322 commented Jun 3, 2024

found one more issue, I guess it is connected with original one, if filtering, and there is a node in another group, after selecting parent nodes is not selected at all after clearing filter, but should be 'partial' selected
image
image
please let me know if require separate issue for that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant