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 61ed10f commit a0804b5Copy full SHA for a0804b5
src/Table.tsx
@@ -527,9 +527,9 @@ function Table<RecordType extends DefaultRecordType>(
527
React.useEffect(() => {
528
if (!tailor || !useInternalHooks) {
529
if (scrollBodyRef.current instanceof Element) {
530
- setScrollbarSize(getTargetScrollBarSize(scrollBodyRef.current)?.width);
+ setScrollbarSize(getTargetScrollBarSize(scrollBodyRef.current).width);
531
} else {
532
- setScrollbarSize(getTargetScrollBarSize(scrollBodyContainerRef.current)?.width);
+ setScrollbarSize(getTargetScrollBarSize(scrollBodyContainerRef.current).width);
533
}
534
535
setSupportSticky(isStyleSupport('position', 'sticky'));
0 commit comments