fix(feedback): 第一步选完类型后点「下一步」无反应
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
next() 漏写了 step===1 且 type 已选的分支,按钮只在「未选」时 拦截,「已选」时进入空函数体直接返回,没有 setStep(2)。 补上 step===1 已选时 setStep(2),行为: - 直接点卡片:保持原有自动下一步(onClick 里 setStep) - 选中后用底部「下一步」按钮:现在也能正常推进 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -181,7 +181,11 @@ export default function FeedbackFab({ module: moduleProp }: Props = {}) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const next = () => {
|
const next = () => {
|
||||||
if (step === 1 && !type) return;
|
if (step === 1) {
|
||||||
|
if (!type) return;
|
||||||
|
setStep(2);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (step === 2) {
|
if (step === 2) {
|
||||||
if (!content.trim()) { taRef.current?.focus(); return; }
|
if (!content.trim()) { taRef.current?.focus(); return; }
|
||||||
submit();
|
submit();
|
||||||
|
|||||||
Reference in New Issue
Block a user