Describe the bug
When selecting subrows the parent checkbox does not get correct state
Your minimal, reproducible example
https://codesandbox.io/s/github/tanstack/table/tree/main/examples/react/expanding
Steps to reproduce
The bug can be reproduced in official demo:
https://codesandbox.io/s/github/tanstack/table/tree/main/examples/react/expanding
How to reproduce:
-
Expand the row

-
Begin selecting subrows, the parent checkbox shows partial selection, which is correct

-
When selecting last subrow, the parent row is set as unchecked, but should be checked to mark that all subrows are selected.

Selecting/unselecting parent checkox selects/unselects all subrows correctly
Expected behavior
Selecting all subrows must mark parent checkbox as checked
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows, Chrome 110.0.5481.104
react-table version
8.7.9
TypeScript version
Additional context
No response
Terms & Code of Conduct
Describe the bug
When selecting subrows the parent checkbox does not get correct state
Your minimal, reproducible example
https://codesandbox.io/s/github/tanstack/table/tree/main/examples/react/expanding
Steps to reproduce
The bug can be reproduced in official demo:
https://codesandbox.io/s/github/tanstack/table/tree/main/examples/react/expanding
How to reproduce:
Expand the row

Begin selecting subrows, the parent checkbox shows partial selection, which is correct

When selecting last subrow, the parent row is set as unchecked, but should be checked to mark that all subrows are selected.

Selecting/unselecting parent checkox selects/unselects all subrows correctly
Expected behavior
Selecting all subrows must mark parent checkbox as checked
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
Windows, Chrome 110.0.5481.104
react-table version
8.7.9
TypeScript version
Additional context
No response
Terms & Code of Conduct