Skip to content

Commit

Permalink
fix(Popover): add pointer-events class on opened condition
Browse files Browse the repository at this point in the history
  • Loading branch information
p-sw committed Jun 30, 2024
1 parent 113366d commit c1289b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/components/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit c1289b6

Please sign in to comment.