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.
1 parent 2e88ea8 commit 5b60558Copy full SHA for 5b60558
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` changed
+ // Sync scroll bar when init or `horizonScroll` & `data` changed
496
React.useEffect(() => triggerOnScroll, []);
497
React.useEffect(() => {
498
if (horizonScroll) {
499
triggerOnScroll();
500
501
- }, [horizonScroll]);
+ }, [horizonScroll, data]);
502
503
// ===================== Effects ======================
504
const [scrollbarSize, setScrollbarSize] = React.useState(0);
0 commit comments