From 16c9f5ef1de63fab6b9a323245ebfdf0e68a3599 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 5f21f1d5be..10aa2a858b 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; }