Footers displayed even when not in column definition with column group #5023
-
When using column grouping to have one header that take fullWidth of my table and all other columns below, but adding this header also add a footer below the table, thise footer is rendered but with empty element as you can see in the following example I'd like to know if there is a way to not display theses footers ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
This seems to be an issue as this is also present in an example of tanstack v8 : https://tanstack.com/table/v8/docs/examples/react/column-groups |
Beta Was this translation helpful? Give feedback.
-
This is still relevant, and kinda annoying :P You don't even need to use grouping, just take the basic example from the documentation, and remove the footers: Will still render a row for the footer with empty cells :/ |
Beta Was this translation helpful? Give feedback.
I'm running into the same issue. Here's a fix, though it isn't very elegant. This determines whether any of the columns actually have a footer. If not, you can return early from the component.