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
ColumnSizing's getResizeHandler does not respect columnDef minSize nor maxSize #5997
Define a table with header and body but override the display from table (or table-cell / table-row) to flex
Define columns with minSize or maxSize
Enable the resize (enableColumnResizing)
On your header size slider element apply onMouseDown prop with the value header.getResizeHandler() (where header is the tanstack's header)
Try to resize a column
Actual behavior:
Resize does not respect the minSize or maxSize according to the columnDef but resize the column according to the mouse end position
Expected behavior:
Resize SHOULD respect the columnDef minSize and maxSize.
Additional context:
You can reproduce it by visiting the columnSizing example from Tanstack official examples: column-sizing and see by yourself you can resizing the column below the minSize :/
Do you intend to try to help solve this bug with your own PR?
Yes, I think I know how to fix it and will discuss it in the comments of this issue
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.
Activity