From 6fa805e7abb53372c1f0f1d4a4d2e1090d777191 Mon Sep 17 00:00:00 2001 From: Sharad Kushwaha <123795629+SharadK10@users.noreply.github.com> Date: Sat, 12 Oct 2024 11:36:54 +0530 Subject: [PATCH] fix: issue of triggering opening and closing question paper on clicking on submenu options (#3506) Co-authored-by: Matti Nannt --- .../surveys/[surveyId]/edit/components/EditorCardMenu.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/EditorCardMenu.tsx b/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/EditorCardMenu.tsx index bede5a1cf1..9b1efaff87 100644 --- a/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/EditorCardMenu.tsx +++ b/apps/web/app/(app)/(survey-editor)/environments/[environmentId]/surveys/[surveyId]/edit/components/EditorCardMenu.tsx @@ -166,7 +166,9 @@ export const EditorCardMenu = ({
{cardType === "question" && ( - + e.preventDefault()}> Change question type @@ -207,7 +209,9 @@ export const EditorCardMenu = ({ {cardType === "question" && ( - + e.preventDefault()}> Add question below