We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
columns
1 parent 730d4df commit 7029c4eCopy full SHA for 7029c4e
src/Table.tsx
@@ -492,13 +492,13 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
492
}
493
};
494
495
- // Sync scroll bar when init or `horizonScroll` & `data` changed
+ // Sync scroll bar when init or `horizonScroll`, `data` and `columns.length` changed
496
React.useEffect(() => triggerOnScroll, []);
497
React.useEffect(() => {
498
if (horizonScroll) {
499
triggerOnScroll();
500
501
- }, [horizonScroll, data]);
+ }, [horizonScroll, data, columns.length]);
502
503
// ===================== Effects ======================
504
const [scrollbarSize, setScrollbarSize] = React.useState(0);
0 commit comments