From f40187d8da7f40bb67a4390a0047043a0175e041 Mon Sep 17 00:00:00 2001 From: Eungyeol <66717787+eungyeole@users.noreply.github.com> Date: Thu, 10 Oct 2024 15:11:29 +0900 Subject: [PATCH] refactor: type ClientRect to DOMRect --- .../src/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.tsx b/packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.tsx index f869cb8fdcf..450ba769778 100644 --- a/packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.tsx +++ b/packages/@mantine/core/src/components/ScrollArea/ScrollAreaScrollbar/Scrollbar.tsx @@ -38,7 +38,7 @@ export const Scrollbar = forwardRef((props, forw const context = useScrollAreaContext(); const [scrollbar, setScrollbar] = useState(null); const composeRefs = useMergedRef(forwardedRef, (node) => setScrollbar(node)); - const rectRef = useRef(null); + const rectRef = useRef(null); const prevWebkitUserSelectRef = useRef(''); const { viewport } = context; const maxScrollPos = sizes.content - sizes.viewport;