Open AlexandrosGounis opened 1 year ago
Same issue
The same problem
same here
@AlexandrosGounis try to wrap your resizer handler like the code below. It solved my problem
{header.column.getCanResize() && (
<div
{...{
onMouseDown: header.getResizeHandler(),
onTouchStart: header.getResizeHandler(),
className: `${styles.resizer} ${header.column.getIsResizing() ? styles.isResizing : ''}`,
style: {
transform: ''
},
}}
/>
)}
Describe the bug
When using
getSortedRowModel
inuseReactTable
with resizing, one triggers the other and an endless loop of events happens, preventing both actions and ultimately freezing.Your minimal, reproducible example
https://0tkbm5.sse.codesandbox.io/
Steps to reproduce
Here is what I am using:
Expected behavior
Rendering a
th
:How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
everywhere
react-table version
v8.7.6
TypeScript version
No response
Additional context
No response
Terms & Code of Conduct