From 6d04a96cb984c2a61abc46ed6c8c6d72fb9c471e Mon Sep 17 00:00:00 2001 From: Richard Tetaz Date: Mon, 18 Nov 2024 13:23:27 +0000 Subject: [PATCH] Prevent create popover from opening when another popover is active --- .../src/app/containers/calendar/InteractiveCalendarView.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/applications/calendar/src/app/containers/calendar/InteractiveCalendarView.tsx b/applications/calendar/src/app/containers/calendar/InteractiveCalendarView.tsx index 3258d466da..112b8ca2fc 100644 --- a/applications/calendar/src/app/containers/calendar/InteractiveCalendarView.tsx +++ b/applications/calendar/src/app/containers/calendar/InteractiveCalendarView.tsx @@ -819,7 +819,12 @@ const InteractiveCalendarView = ({ } if (isCreateDownAction(mouseDownAction)) { - if (!createEventCalendar || !createEventCalendarBootstrap || isSavingEvent.current) { + if ( + !createEventCalendar || + !createEventCalendarBootstrap || + (targetEventData && !tmpData) || // Prevent creating a new event when an event is already selected + isSavingEvent.current + ) { return; } -- 2.11.4.GIT