From b744156d42d01ae73116e6f3ba8a6b6a89c33034 Mon Sep 17 00:00:00 2001 From: Dhruwang Date: Mon, 9 Feb 2026 14:13:34 +0530 Subject: [PATCH] fix: update welcome card toggle logic to set active element when enabled --- .../survey/editor/components/edit-welcome-card.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/modules/survey/editor/components/edit-welcome-card.tsx b/apps/web/modules/survey/editor/components/edit-welcome-card.tsx index 57a0f207c8..bdc4fcaadb 100644 --- a/apps/web/modules/survey/editor/components/edit-welcome-card.tsx +++ b/apps/web/modules/survey/editor/components/edit-welcome-card.tsx @@ -67,7 +67,7 @@ export const EditWelcomeCard = ({
@@ -101,7 +101,11 @@ export const EditWelcomeCard = ({ checked={localSurvey?.welcomeCard?.enabled} onClick={(e) => { e.stopPropagation(); - updateSurvey({ enabled: !localSurvey.welcomeCard?.enabled }); + const newEnabledState = !localSurvey.welcomeCard?.enabled; + updateSurvey({ enabled: newEnabledState }); + if (newEnabledState && !open) { + setActiveElementId("start"); + } }} />