From d6cca90dbf4eec5c92a82ac992917ac977b726d9 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 d4e61220e5..3271453d5c 100644 --- a/calendar/js/app.ts +++ b/calendar/js/app.ts @@ -2073,6 +2073,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');