From c1289b63ea3f3cbc32ae6a9ffe4e3d28d252dc3f Mon Sep 17 00:00:00 2001 From: p-sw Date: Sun, 30 Jun 2024 14:10:09 +0900 Subject: [PATCH] fix(Popover): add pointer-events class on opened condition --- packages/react/components/Popover.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react/components/Popover.tsx b/packages/react/components/Popover.tsx index d51c9df..80de2b6 100644 --- a/packages/react/components/Popover.tsx +++ b/packages/react/components/Popover.tsx @@ -80,8 +80,8 @@ const [popoverContentVariant, resolvePopoverContentVariantProps] = vcn({ lg: "[--popover-offset:8px]", }, opened: { - true: "opacity-1 scale-100", // TODO: add pointer event disable - false: "opacity-0 scale-75", + true: "opacity-1 scale-100 pointer-events-auto select-auto touch-auto", + false: "opacity-0 scale-75 pointer-events-none select-none touch-none", }, }, defaults: {