-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grouping by not using subRows #5594
Comments
In case you confirm this to be an issue/not intended behavior, it seems the culprit is here: The
Looking forward to know what you think of this. This would probably be a breaking change for some? Since we can pass a |
TanStack Table version
8.17.3
Framework/Library version
React v18.2.0
Describe the bug and the steps to reproduce it
Not sure if a bug of if it's intended behavior but the grouping feature doesn't seem to look at values in
subRows
.Please check the codesandbox below. I'd expect to have "John (4)", and to actually have all rows and subRows grouped by
firstName
but only the top-level rows are grouped byfirstName
.If this is intended behavior, a consequence is that
firstName
in thesubRows
is empty and misleading (e.g. "John Hey" shows up under "James" but only "Hey" is visible). Still, in case this is still intended behavior, how could this be avoided so the table groups by a column in all rows and subRows?Your Minimal, Reproducible Example - (Sandbox Highly Recommended)
On the sandbox below, click on the "First Name" group icon first, and then on the button "Toggle expand all" button below the table. This way we ensure the table is grouped by
firstName
and all rows are expanded.https://codesandbox.io/p/sandbox/sharp-meninsky-766zsz?file=%2Fsrc%2FApp.tsx%3A62%2C26
Screenshots or Videos (Optional)
No response
Do you intend to try to help solve this bug with your own PR?
Maybe, I'll investigate and start debugging
Terms & Code of Conduct
The text was updated successfully, but these errors were encountered: