From 90b1266fe5efe503197dd62e057f267072f03c22 Mon Sep 17 00:00:00 2001 From: kkfluous Date: Thu, 30 Apr 2026 14:08:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(feedback):=20=E5=8F=8D=E9=A6=88=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E7=A6=81=E6=AD=A2=E8=83=8C=E6=99=AF=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=85=B3=E9=97=AD=EF=BC=8C=E5=8F=AA=E8=83=BD=E7=94=A8=20X=20?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前点击外部遮罩会关闭弹窗,用户填到一半误触会丢失全部已输入内容。 去掉 backdrop 的 onClick={close},只保留右上角 X 按钮关闭路径。 Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/FeedbackFab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FeedbackFab.tsx b/src/components/FeedbackFab.tsx index a0487b9..b9f3c07 100644 --- a/src/components/FeedbackFab.tsx +++ b/src/components/FeedbackFab.tsx @@ -241,7 +241,7 @@ export default function FeedbackFab({ module: moduleProp }: Props = {}) { animate={{ opacity: 1 }} exit={{ opacity: 0 }} className="fixed inset-0 z-[90] bg-slate-900/40 backdrop-blur-sm flex items-end md:items-center justify-center" - onClick={close} + // 不允许点击背景关闭:避免用户输入到一半误触遮罩丢失内容 >