From 676ddd952f264028b38d08b596cd315fdcf27a2b Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 20 Jul 2023 10:26:56 -0600 Subject: [PATCH] Calendar: Fix ignoring drag for events Clicking inside the time was not ignored, causing a drag to be started --- calendar/js/et2_widget_timegrid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar/js/et2_widget_timegrid.ts b/calendar/js/et2_widget_timegrid.ts index 0d22e66cf6..fb4c696a3e 100644 --- a/calendar/js/et2_widget_timegrid.ts +++ b/calendar/js/et2_widget_timegrid.ts @@ -2072,7 +2072,7 @@ export class et2_calendar_timegrid extends et2_calendar_view implements et2_IDet } // Skip for events - if(event.target.parentElement.classList.contains("calendar_calEvent")) + if(event.target.closest(".calendar_calEvent")) { return; }