From 89950524f4a1e7b9fb04b12582d2ffb3d468d27b Mon Sep 17 00:00:00 2001 From: p-sw Date: Fri, 14 Jun 2024 23:51:41 +0900 Subject: [PATCH] fix: fix problem with ref element type --- packages/react/components/Drawer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react/components/Drawer.tsx b/packages/react/components/Drawer.tsx index b6bb745..bceb316 100644 --- a/packages/react/components/Drawer.tsx +++ b/packages/react/components/Drawer.tsx @@ -349,7 +349,7 @@ const DrawerContent = forwardRef( transitionDuration: dragState.isDragging ? "0s" : undefined, userSelect: dragState.isDragging ? "none" : undefined, }} - ref={(el) => { + ref={(el: HTMLDivElement | null) => { internalRef.current = el; if (typeof ref === "function") { ref(el);