diff --git a/packages/mantine-react-table/src/hooks/useMRT_ColumnVirtualizer.ts b/packages/mantine-react-table/src/hooks/useMRT_ColumnVirtualizer.ts index 13be391a8..06c87c349 100644 --- a/packages/mantine-react-table/src/hooks/useMRT_ColumnVirtualizer.ts +++ b/packages/mantine-react-table/src/hooks/useMRT_ColumnVirtualizer.ts @@ -53,7 +53,7 @@ export const useMRT_ColumnVirtualizer = < .sort((a, b) => a - b), ] : [[], []], - [columnPinning, enableColumnPinning], + [visibleColumns.length, columnPinning, enableColumnPinning], ); const numPinnedLeft = leftPinnedIndexes.length;