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
24.61k stars 3.04k forks source link

Column Virtualisation is not working in case we have grouped columns #5472

Closed umeet23 closed 1 month ago

umeet23 commented 3 months ago

TanStack Table version

8.8.5

Framework/Library version

17.0.2

Describe the bug and the steps to reproduce it

When we have grouped columns then column virtualisation does not work properly.

Your Minimal, Reproducible Example - (Sandbox Highly Recommended)

https://codesandbox.io/p/sandbox/quirky-borg-t6p4w8?file=%2Fsrc%2FmakeData.js%3A12%2C34

Screenshots or Videos (Optional)

No response

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

None

Terms & Code of Conduct

KevinVandy commented 1 month ago

yeah, the examples in the docs don't account for this. You'll probably need a different virtualizer for each row of headers in the case of header groups.