From a0804b5f7b3a41025bd464ea8f43ef94a754202a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=97=E5=98=89=E7=94=B7?= <574980606@qq.com> Date: Sat, 11 Jan 2025 03:56:33 +0800 Subject: [PATCH] fix: fix --- src/Table.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Table.tsx b/src/Table.tsx index 90f523b4..2923df58 100644 --- a/src/Table.tsx +++ b/src/Table.tsx @@ -527,9 +527,9 @@ function Table( 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'));