From 25f5933792e9b7904f2715d6f4056c9a5da9feca Mon Sep 17 00:00:00 2001 From: LanQin_ Date: Wed, 17 Jun 2026 15:10:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(mail):=20=E9=98=BB=E6=AD=A2=E6=92=B0?= =?UTF-8?q?=E5=86=99=E5=BC=B9=E7=AA=97=E5=A4=96=E9=83=A8=E4=BA=A4=E4=BA=92?= =?UTF-8?q?=E5=85=B3=E9=97=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 为 `DialogContent` 增加外部交互拦截,避免点击或按下弹窗外区域时被意外关闭。 --- apps/web/src/pages/mail.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/web/src/pages/mail.tsx b/apps/web/src/pages/mail.tsx index 7458a06..399a0e6 100644 --- a/apps/web/src/pages/mail.tsx +++ b/apps/web/src/pages/mail.tsx @@ -1664,7 +1664,11 @@ function ComposeDialog({ mailbox, open, draft, onOpenChange, onSent }: { mailbox } return ( - + event.preventDefault()} + onPointerDownOutside={(event) => event.preventDefault()} + >