From 67da4ea757ff0cf98bdae71037b7961a158e1b54 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Feb 2022 14:13:40 +0100 Subject: [PATCH] datetime-picker.js: Only handle content inside top-level or modal containers --- public/js/icinga/behavior/datetime-picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/behavior/datetime-picker.js b/public/js/icinga/behavior/datetime-picker.js index 5a5f5d39a..fb0ddffc3 100644 --- a/public/js/icinga/behavior/datetime-picker.js +++ b/public/js/icinga/behavior/datetime-picker.js @@ -45,7 +45,7 @@ */ this._pickers = new Map(); - this.on('rendered', this.onRendered, this); + this.on('rendered', '#main > .container, #modal-content', this.onRendered, this); this.on('close-column', this.onCloseContainer, this); this.on('close-modal', this.onCloseContainer, this); };