From 00084b77f353a7eb73579513f9ae01fb1584bbae Mon Sep 17 00:00:00 2001 From: nathan Date: Wed, 8 Dec 2021 13:41:35 -0700 Subject: [PATCH] Calendar: Remove drag to create event placeholder when edit dialog is opened --- calendar/js/app.ts | 5 +++++ 1 file changed, 5 insertions(+) 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');