primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.59k stars 4.62k forks source link

Component: SelectionTree, Bug when selecting something while having filtered value #16792

Open rickstick-code opened 3 days ago

rickstick-code commented 3 days ago

Describe the bug

If you use the tree select component with the given filter and you select something the parents get marked as selected. Even though they should be marked as partially selected.

selecttreebug

Environment

Windows 10 Chrome 130.0.6723.117

Reproducer

No response

Angular version

18.2.8

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

22.0.0

Browser(s)

Chrome

Steps to reproduce the behavior

Filter for an element, mark it and when you remove the filter it shows the parents as selected. (example in gif)

Expected behavior

The parents should be shown as partially selected. (example in gif)

github-actions[bot] commented 2 days ago

Due to PrimeNG team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. :sparkles: Thank you for your contribution! :sparkles: