-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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: SelectionTree, Bug when selecting something while having filtered value #16792
Comments
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. ✨ Thank you for your contribution! ✨ |
@rickstick-code I had the same issue. I thought about contributing a fix. When I digged into the source code, I realized, that Long story short, I added unique keys to my nodes and it works as expected. Maybe it also fixes it for you? I was tempted to tackle the TypeScript typings, but I guess it "fits" into the current |
@shaman-apprentice |
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.
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)
The text was updated successfully, but these errors were encountered: