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>
This commit is contained in:
v0
2026-02-04 16:22:56 +00:00
parent 22d3209fc6
commit 4c67cc066f

View File

@@ -90,9 +90,7 @@ const ToastClose = React.forwardRef<
)}
toast-close=""
onClick={(e) => {
e.preventDefault()
e.stopPropagation()
e.nativeEvent.stopImmediatePropagation()
onClick?.(e)
}}
onPointerDown={(e) => {