TanStack / table

🤖 Headless UI for building powerful tables & datagrids for TS/JS - React-Table, Vue-Table, Solid-Table, Svelte-Table
https://tanstack.com/table
MIT License
25.03k stars 3.07k forks source link

Selection of subrows not working correctly #5416

Open simcha90 opened 6 months ago

simcha90 commented 6 months ago

TanStack Table version

8.13.2

Framework/Library version

18.2.0

Describe the bug and the steps to reproduce it

  1. Select first collapsed row
  2. Expand it
  3. Start unselect sub rows

Bug 1. Main rows still shows selected

  1. Unselect main row and start select subrows

Bug 2. Main rows shows unselected when other rows selected

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://tanstack.com/table/latest/docs/framework/react/examples/expanding

Screenshots or Videos (Optional)

https://github.com/TanStack/table/assets/56388545/6de2310f-093c-41e8-81f9-fb3d362c4a5e

Do you intend to try to help solve this bug with your own PR?

None

Terms & Code of Conduct