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?