diff --git a/calendar/js/app.ts b/calendar/js/app.ts index 54660a2de2..d4e61220e5 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -2125,6 +2125,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') {