You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Function getIsSomeSelected() return false when has one child #5800
When a parent has only one node and this node is selected, function getIsSomeSelected() return all as false
Additional
See that in my object, subRow has only one item, the problem only occurs in this case. If you add one more item totaling 2 children, it works correctly
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
Do you intend to try to help solve this bug with your own PR?
None
Terms & Code of Conduct
I agree to follow this project's Code of Conduct
I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
My impression is that getIsSomeSelected returns false for any number of subrows if they are all selected. (getIsAllSubRowsSelected() returns true in this case).
You should be able to do row.getIsSomeSelected() || row.getIsAllSubRowsSelected() to get what you want, I think?
I've asked in discord whether adding a row.getIsAnySubRowsSelected() would be accepted.
Activity
tuliooov commentedon Nov 11, 2024
I've also experienced this problem
remleduff commentedon Nov 12, 2024
My impression is that getIsSomeSelected returns false for any number of subrows if they are all selected. (getIsAllSubRowsSelected() returns true in this case).
You should be able to do
row.getIsSomeSelected() || row.getIsAllSubRowsSelected()to get what you want, I think?I've asked in discord whether adding a
row.getIsAnySubRowsSelected()would be accepted.