From 7094e2bb62d5b72714ea66ae75c96b4cb733269c Mon Sep 17 00:00:00 2001 From: linxianxi <904492381@qq.com> Date: Mon, 5 Feb 2024 17:21:18 +0800 Subject: [PATCH] chore: update --- src/Table.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Table.tsx b/src/Table.tsx index 7d7e979f2..ae5d3cf3d 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -357,8 +357,6 @@ function Table( const stickyRef = React.useRef<{ setScrollLeft: (left: number) => void }>(); const { isSticky, offsetHeader, offsetSummary, offsetScroll, stickyClassName, container } = useSticky(sticky, prefixCls); - const showStickyScrollbar = - isSticky && scrollBodyRef.current && scrollBodyRef.current instanceof Element; // Footer (Fix footer must fixed header) const summaryNode = React.useMemo(() => summary?.(mergedData), [summary, mergedData]); @@ -701,7 +699,7 @@ function Table( )} - {showStickyScrollbar && ( + {isSticky && scrollBodyRef.current && scrollBodyRef.current instanceof Element && (