Skip to content

Commit

Permalink
chore: close strategy dialog when esc or clicking outside
Browse files Browse the repository at this point in the history
  • Loading branch information
daveleek committed Dec 17, 2024
1 parent 1a36b88 commit 1221d44
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export const TemplateForm: React.FC<ITemplateFormProps> = ({
<SidebarModal
label='Add strategy to template milestone'
onClose={() => {
setAddUpdateStrategyOpen(false);
setStrategyModeEdit(false);
}}
open={addUpdateStrategyOpen}
Expand All @@ -205,6 +206,7 @@ export const TemplateForm: React.FC<ITemplateFormProps> = ({
onAddUpdateStrategy={addUpdateStrategy}
onCancel={() => {
setAddUpdateStrategyOpen(false);
setStrategyModeEdit(false);
}}
editMode={strategyModeEdit}
/>
Expand Down

0 comments on commit 1221d44

Please sign in to comment.