From 2f788af44a9d984361c8ea2c4f6b323f94fe5cba Mon Sep 17 00:00:00 2001 From: Marcus Hof <13001502+MarconLP@users.noreply.github.com> Date: Wed, 13 May 2026 23:01:03 +0000 Subject: [PATCH] fix(code): make toast close button clickable The X button on toasts swallowed clicks because sonner's pointerdown handler only short-circuits when event.target is a BUTTON; clicking the SVG icon made it the target, sonner engaged swipe handling, and the button's onClick never fired. Disable pointer events on the icon so the button itself is always the target. Generated-By: PostHog Code Task-Id: 50570d7f-97f6-4f2a-b88e-45fb836a1061 --- apps/code/src/renderer/utils/toast.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/code/src/renderer/utils/toast.tsx b/apps/code/src/renderer/utils/toast.tsx index cc234df69..ccd4032ca 100644 --- a/apps/code/src/renderer/utils/toast.tsx +++ b/apps/code/src/renderer/utils/toast.tsx @@ -61,7 +61,7 @@ function ToastComponent(props: ToastProps) { color="gray" onClick={() => sonnerToast.dismiss(id)} > - + )}