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 19d0234567
commit 676ddd952f

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