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
getIsSomeRowsSelected() does not trigger when all rows are selected #5740
I don't understand why do those handlers exclude each other in implementation. Isn't it the basic rule of logic that when everything is selected, part is deemed selected too? In implementation its not like this by some reason, specifically checking that there shouldn't be every row selected to return true:
Do you intend to try to help solve this bug with your own PR?
Yes, I think I know how to fix it and will discuss it in the comments of this issue
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.
Reacted by Rosco Kalis, Radek Podrazky and Qwerty (Vítězslav Ackermann Ferko)
I ran into the same issue today and I'm not sure this is a bug. We're using getIsSomeRowsSelected() to set indeterminate on a checkbox, and getIsAllRowsSelected() to set checked.
The documentation around it may need updating though.
In logic and set theory EVERY (or ALL) implies SOME and therefore they cannot redefine the meaning of it even if the motivation is convenience. This is just more overhead for the developer.
However, I understand that there is a need for different state variables to represent what you describe.
AND that the documentation absolutely needs updating.
Anyway, fixing it now without breaking anything would be probably catastrophic, so at least a documentation change is necessary, but ideally a migration strategy in future versions would be great too.
Activity
karlshea commentedon Aug 7, 2025
I ran into the same issue today and I'm not sure this is a bug. We're using
getIsSomeRowsSelected()to setindeterminateon a checkbox, andgetIsAllRowsSelected()to setchecked.The documentation around it may need updating though.
ackvf commentedon Dec 30, 2025
@karlshea This is indeed wrong, there is no room for different interpretation. Consider this well known JS feature:
In logic and set theory EVERY (or ALL) implies SOME and therefore they cannot redefine the meaning of it even if the motivation is convenience. This is just more overhead for the developer.
However, I understand that there is a need for different state variables to represent what you describe.
AND that the documentation absolutely needs updating.
Anyway, fixing it now without breaking anything would be probably catastrophic, so at least a documentation change is necessary, but ideally a migration strategy in future versions would be great too.
KevinVandy commentedon Jul 27, 2026
thankfully fixed this in v9. This was one of the v8 design decisions I personally disagreed with too.