Skip to content

Commit

Permalink
Update dependency array in useColumns hook to include outerGridRef
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkorep committed Nov 18, 2024
1 parent 4418cf3 commit d3b3062
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Grid/useColumns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const useColumns = ({
onColumnResizeProp(columnIndex, newWidth);
}
},
[columnCount, gridRef, onColumnResizeProp, measureColumnWidth]
[gridRef, onColumnResizeProp, outerGridRef, measureColumnWidth, columnCount]
);

const columnWidth = useCallback(
Expand Down

0 comments on commit d3b3062

Please sign in to comment.