From 1221d4477b3b24899c461a5c168f7c873134b6c7 Mon Sep 17 00:00:00 2001 From: David Leek Date: Tue, 17 Dec 2024 10:23:33 +0100 Subject: [PATCH] chore: close strategy dialog when esc or clicking outside --- .../src/component/releases/ReleasePlanTemplate/TemplateForm.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm.tsx b/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm.tsx index 9dd984a4c160..b38da1510640 100644 --- a/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm.tsx +++ b/frontend/src/component/releases/ReleasePlanTemplate/TemplateForm.tsx @@ -195,6 +195,7 @@ export const TemplateForm: React.FC = ({ { + setAddUpdateStrategyOpen(false); setStrategyModeEdit(false); }} open={addUpdateStrategyOpen} @@ -205,6 +206,7 @@ export const TemplateForm: React.FC = ({ onAddUpdateStrategy={addUpdateStrategy} onCancel={() => { setAddUpdateStrategyOpen(false); + setStrategyModeEdit(false); }} editMode={strategyModeEdit} />