-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Parent checkbox state incorrect when TreeSelect is being filter #11815
Comments
Hi, So sorry for the delayed response! Improvements have been made to many components recently, both in terms of performance and enhancement. Therefore, this improvement may have been developed in another issue ticket without realizing it. You can check this in the documentation. If there is no improvement on this, can you reopen the issue so we can include it in our roadmap? Best Regards, |
Hello, This is still an issue as of version 16.0.2 |
@bon-vivant |
I don't see a way to reopen the issue on the page (screenshot of what I'm seeing), just a Comment button (screenshot of what I'm seeing). |
Describe the bug
On TreeSelect Filter, filtering selection so that a node with multiple children options is filtered down to displaying just one child option, then selecting the child, causes the parent checkbox to display fully-selected (checked) icon instead of the partially-select (minus) icon. Clearing the filter will redisplay the other children options but parent checkbox is still showing fully-selected (checked) icon:
Bug.in.3rd.party.component.mp4
Environment
Found on
PrimeNG 14.0.0
Angular 14.1.1
but it was probably an issue in PrimeNG 13 when filter was introduced to the TreeSelect component.
Reproducer
No response
Angular version
Angular 14.1.1
PrimeNG version
14.0.0
Build / Runtime
Angular CLI App
Language
ALL
Node version (for AoT issues node --version)
16.14.0
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
Parent checkbox should be displaying partially-selected (minus) icon either by step 3 or step 4.
If at least one but not all child options of a node are selected, parent checkbox should display partially-selected (minus) icon. Parent checkbox should only display fully-selected (checked) icon when all its children options are selected.
The text was updated successfully, but these errors were encountered: