You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
there is a bug when you try sticky pin column group #5397
Do you intend to try to help solve this bug with your own PR?
None
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.
Hey! I'm having this same issue. I've also noticed that if you group last name & something else (but not first name) you get a duplicated group header, which doesn't have any way to say it's not pinned (as it inherits the column, which is pinned, but the header is not)
Hey! I confirm that I got the same issue as above. For now I just disabled the possibility to stick column when they are grouped.
The issue is that the column.getStart('left') of the group header return the wrong value (the rightmost child header, left position value) but I couldn't find a fix for it after checking the code :(
I have a workaround where I check if the column have children columns, if so I use the getStart('left') value of the first one otherwise I just get the value normally.
I don't understand how come using the getStart() function would work in a <table>. All <th>, <td> will auto expand their width depend on the widest cell in the same column. I had looked into the source code, both getStart function in the column and header are calculating the size from the ColumnRef instead of the DOM element. So, how could it be working?
Activity
ryanagillie commentedon Apr 1, 2024
Hey! I'm having this same issue. I've also noticed that if you group last name & something else (but not first name) you get a duplicated group header, which doesn't have any way to say it's not pinned (as it inherits the column, which is pinned, but the header is not)
dogfootruler-kr commentedon Apr 18, 2024
Hey! I confirm that I got the same issue as above. For now I just disabled the possibility to stick column when they are grouped.
The issue is that the column.getStart('left') of the group header return the wrong value (the rightmost child header, left position value) but I couldn't find a fix for it after checking the code :(
vuongtruong97 commentedon Jul 4, 2024
Yep! I'm having this same issue.
rmanganiello commentedon Jul 19, 2024
Hey folks, we are having the same issue, any news about this?
dogfootruler-kr commentedon Jul 21, 2024
I have a workaround where I check if the column have children columns, if so I use the getStart('left') value of the first one otherwise I just get the value normally.
Like this:
MiqueVzvsky commentedon Jul 30, 2024
Hey guys, I also have found an issue with sticky columns.
Referring to this example:
https://tanstack.com/table/latest/docs/framework/react/examples/column-pinning-sticky
When we make a change like the one below for any column:
Then, as a result, we will see...

TanStack Table version
8.19.3
jack-szeto commentedon Sep 24, 2024
I don't understand how come using the
getStart()function would work in a<table>. All<th>,<td>will auto expand their width depend on the widest cell in the same column. I had looked into the source code, bothgetStartfunction in the column and header are calculating the size from theColumnRefinstead of the DOM element. So, how could it be working?some snippet from the source code:
the example is definitely not a working one for sticky column...
WoodenPC commentedon Dec 11, 2024
up
Annukul commentedon Jan 30, 2025
Found the solution here #3947 (comment)