Calendar: Fix ignoring drag for events

Clicking inside the time was not ignored, causing a drag to be started
This commit is contained in:
nathan 2023-07-20 10:26:56 -06:00
parent c170c44168
commit 16c9f5ef1d

View File

@ -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;
}