From 8bc1cb5c2466a18cb0d5906a8985199926ab1181 Mon Sep 17 00:00:00 2001 From: Junhyeong Ahn Date: Fri, 10 Mar 2023 15:45:17 +0900 Subject: [PATCH] fixed test --- packages/mui-material/src/Tabs/ScrollbarSize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/mui-material/src/Tabs/ScrollbarSize.js b/packages/mui-material/src/Tabs/ScrollbarSize.js index 583438d9262cc4..d03324afad6864 100644 --- a/packages/mui-material/src/Tabs/ScrollbarSize.js +++ b/packages/mui-material/src/Tabs/ScrollbarSize.js @@ -26,7 +26,7 @@ export default function ScrollbarSize(props) { }; React.useEffect(() => { - const element = nodeRef.current + const element = nodeRef.current; const handleResize = debounce(() => { const prevHeight = scrollbarHeight.current; setMeasurements(element); @@ -45,7 +45,7 @@ export default function ScrollbarSize(props) { }, [onChange]); React.useEffect(() => { - setMeasurements(); + setMeasurements(nodeRef.current); onChange(scrollbarHeight.current); }, [onChange]);