From 8d861538afeb0ef0399926799a06157d20a104a0 Mon Sep 17 00:00:00 2001 From: kkfluous Date: Thu, 30 Apr 2026 14:37:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(feedback):=20=E7=AC=AC=E4=B8=80=E6=AD=A5?= =?UTF-8?q?=E9=80=89=E5=AE=8C=E7=B1=BB=E5=9E=8B=E5=90=8E=E7=82=B9=E3=80=8C?= =?UTF-8?q?=E4=B8=8B=E4=B8=80=E6=AD=A5=E3=80=8D=E6=97=A0=E5=8F=8D=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit next() 漏写了 step===1 且 type 已选的分支,按钮只在「未选」时 拦截,「已选」时进入空函数体直接返回,没有 setStep(2)。 补上 step===1 已选时 setStep(2),行为: - 直接点卡片:保持原有自动下一步(onClick 里 setStep) - 选中后用底部「下一步」按钮:现在也能正常推进 Co-Authored-By: Claude Opus 4.7 (1M context) --- src/components/FeedbackFab.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/FeedbackFab.tsx b/src/components/FeedbackFab.tsx index 1f5d23a..ab3207c 100644 --- a/src/components/FeedbackFab.tsx +++ b/src/components/FeedbackFab.tsx @@ -181,7 +181,11 @@ export default function FeedbackFab({ module: moduleProp }: Props = {}) { }; const next = () => { - if (step === 1 && !type) return; + if (step === 1) { + if (!type) return; + setStep(2); + return; + } if (step === 2) { if (!content.trim()) { taRef.current?.focus(); return; } submit();