-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
Describe the bug
parentId and getParentRow returns undefined for leafRows that are grouped by a given column
Your minimal, reproducible example
https://codesandbox.io/s/row-grouping-forked-pg5nco
Steps to reproduce
- Go to https://codesandbox.io/s/row-grouping-forked-pg5nco
- Expand/Collapse the "single" status
- Notice the parentId is
undefinedand thegetParentRowin the console is undefined too
Expected behavior
I expected the parentId to reference the "virtual" aggregatedGroupedRow tanstack table creates internally.
How often does this bug happen?
Every time
Screenshots or Videos
Platform
- OS: all
- Browser: all
react-table version
v8.9.1
TypeScript version
N/A
Additional context
I think because tanstack table is creating a "virtual/fake" row for the grouping, that row id should be assigned to its subRows so we don't lose its parenting references
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.
efotin, jcranendonk, meinefinsternis, BATCOH, xander-wisdomai and 2 more
Metadata
Metadata
Assignees
Labels
No labels