From c570bd6182a9924647a8d18597de0bee853f2202 Mon Sep 17 00:00:00 2001 From: Suraj Ramchandran <30753067+Suraj-Ram@users.noreply.github.com> Date: Sun, 28 Jan 2024 17:29:56 -0500 Subject: [PATCH] Prevented delete year modal from expanding year --- packages/frontend/components/Plan/DeleteYearModal.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/frontend/components/Plan/DeleteYearModal.tsx b/packages/frontend/components/Plan/DeleteYearModal.tsx index 36e590329..6bbd6e1f6 100644 --- a/packages/frontend/components/Plan/DeleteYearModal.tsx +++ b/packages/frontend/components/Plan/DeleteYearModal.tsx @@ -62,7 +62,10 @@ export const DeleteYearModal: React.FC = ({ marginRight="sm" _hover={{ bg: "white", color: "primary.red.main" }} _active={{ bg: "primary.blue.light.900" }} - onClick={onOpen} + onClick={(e) => { + e.stopPropagation(); + onOpen(); + }} />