From 4c67cc066fe1258b285be6d3ba9f74dc9649cd04 Mon Sep 17 00:00:00 2001 From: v0 Date: Wed, 4 Feb 2026 16:22:56 +0000 Subject: [PATCH] fix: modify event handling for close button Remove `e.preventDefault()` to allow close action while keeping `e.stopPropagation()` for event bubbling control. Co-authored-by: Simon <85533298+handsomezhuzhu@users.noreply.github.com> --- components/ui/toast.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/ui/toast.tsx b/components/ui/toast.tsx index bdfbb62..2dc6668 100644 --- a/components/ui/toast.tsx +++ b/components/ui/toast.tsx @@ -90,9 +90,7 @@ const ToastClose = React.forwardRef< )} toast-close="" onClick={(e) => { - e.preventDefault() e.stopPropagation() - e.nativeEvent.stopImmediatePropagation() onClick?.(e) }} onPointerDown={(e) => {