diff --git a/components/ui/toast.tsx b/components/ui/toast.tsx index 40eedf5..de90680 100644 --- a/components/ui/toast.tsx +++ b/components/ui/toast.tsx @@ -73,14 +73,18 @@ ToastAction.displayName = ToastPrimitives.Action.displayName const ToastClose = React.forwardRef< React.ElementRef, React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( +>(({ className, onClick, ...props }, ref) => ( { + e.stopPropagation() + onClick?.(e) + }} {...props} >