From 5debb80330fb656a9b8e37e40692027ac14d96da Mon Sep 17 00:00:00 2001 From: p-sw Date: Sat, 22 Jun 2024 08:00:10 +0900 Subject: [PATCH] fix: add touch-none in drawerOverlay to prevent outside scrolling --- 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 77d4e0c..7b6cc35 100644 --- a/packages/react/components/Drawer.tsx +++ b/packages/react/components/Drawer.tsx @@ -79,7 +79,7 @@ const [drawerOverlayVariant, resolveDrawerOverlayVariantProps] = vcn({ base: "fixed inset-0 transition-[backdrop-filter] duration-75", variants: { opened: { - true: "pointer-events-auto select-auto", + true: "pointer-events-auto select-auto touch-none", // touch-none to prevent outside scrolling false: "pointer-events-none select-none", }, },