diff --git a/calendar/js/app.ts b/calendar/js/app.ts index b24a69db53..6e27735a0d 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -2046,6 +2046,11 @@ export class CalendarApp extends EgwApp { if(this.egw.preference('new_event_dialog', 'calendar') === 'edit') { + // We lose control after this, so remove the placeholder now + if(event && event.destroy) + { + event.destroy(); + } // Set this to open the add template in a popup //options.template = 'calendar.add'; return this.egw.open(null, 'calendar', 'edit', options, '_blank', 'calendar');