#Column resizing jumps on first drag in custom table component

3 messages · Page 1 of 1 (latest)

lone matrix
#

Hi! I'm building a reusable table component and trying to implement column resizing by dragging.
The issue I'm facing is that the first time I resize a column, its width suddenly jumps to about twice its original size. After that, dragging works normally and resizes smoothly.
I’m using refs to track each <th>, and I get the current width with getComputedStyle.
Has anyone encountered this behavior or knows what might be causing the initial jump?

left pebble
#

you'll probably have better luck there