Skip to content

Commit

Permalink
fix: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan committed Jan 10, 2025
1 parent 321c68c commit 61ed10f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,9 @@ function Table<RecordType extends DefaultRecordType>(
React.useEffect(() => {
if (!tailor || !useInternalHooks) {
if (scrollBodyRef.current instanceof Element) {
setScrollbarSize(getTargetScrollBarSize(scrollBodyRef.current).width);
setScrollbarSize(getTargetScrollBarSize(scrollBodyRef.current)?.width);
} else {
setScrollbarSize(getTargetScrollBarSize(scrollBodyContainerRef.current).width);
setScrollbarSize(getTargetScrollBarSize(scrollBodyContainerRef.current)?.width);
}
}
setSupportSticky(isStyleSupport('position', 'sticky'));
Expand Down

0 comments on commit 61ed10f

Please sign in to comment.