From e5d71597f1cff3e596cb7d9aca73af723323f0c8 Mon Sep 17 00:00:00 2001 From: huanghuoguoguo <60681390+huanghuoguoguo@users.noreply.github.com> Date: Sun, 14 Jun 2026 21:17:18 +0800 Subject: [PATCH] fix(survey): prevent option controls from submitting forms --- web/src/app/home/components/survey/SurveyWidget.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/src/app/home/components/survey/SurveyWidget.tsx b/web/src/app/home/components/survey/SurveyWidget.tsx index 5e7dc06a..16f35865 100644 --- a/web/src/app/home/components/survey/SurveyWidget.tsx +++ b/web/src/app/home/components/survey/SurveyWidget.tsx @@ -310,6 +310,7 @@ function SingleSelectField({ {options.map((opt) => (
+
{opt.has_input && selected && (