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 619c295 commit 1646680Copy full SHA for 1646680
packages/firecms_core/src/components/VirtualTable/VirtualTable.tsx
@@ -131,7 +131,8 @@ export const VirtualTable = React.memo<VirtualTableProps<any>>(
131
// Set initial scroll position
132
useEffect(() => {
133
if (tableRef.current && initialScroll) {
134
- tableRef.current.scrollTo(0, initialScroll);
+ const { scrollLeft } = tableRef.current;
135
+ tableRef.current.scrollTo(scrollLeft, initialScroll);
136
}
137
}, [tableRef, initialScroll]);
138
0 commit comments