From 5161735eeef31a6382434ca2ecb1a11c25af8bd4 Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 8 Dec 2021 11:58:17 -0700 Subject: [PATCH] Calendar: Remove drag to create event placeholder when popup is closed --- calendar/js/app.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/calendar/js/app.ts b/calendar/js/app.ts index 8bdb958c3a..b24a69db53 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -2098,6 +2098,10 @@ export class CalendarApp extends EgwApp close: function( ev, ui ) { // Wait a bit to make sure etemplate button finishes processing, or it will error window.setTimeout(function() { + if(event && event.destroy) + { + event.destroy(); + } var template = etemplate2.getById('calendar-add'); if(template && template.name === 'calendar.add') {