From 95dbdff08a788673f892ce23468c68fbb63a1cc3 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Mon, 14 Jan 2019 10:41:19 +0100 Subject: [PATCH] Fix bug with event.event.target being undefined (#3683) --- core/modules/utils/dom/modal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/utils/dom/modal.js b/core/modules/utils/dom/modal.js index 0f65c8f63..1e77e0361 100644 --- a/core/modules/utils/dom/modal.js +++ b/core/modules/utils/dom/modal.js @@ -30,7 +30,7 @@ Modal.prototype.display = function(title,options) { options = options || {}; this.srcDocument = options.variables && (options.variables.rootwindow === "true" || options.variables.rootwindow === "yes") ? document : - (options.event.event ? options.event.event.target.ownerDocument : document); + (options.event.event && options.event.event.target ? options.event.event.target.ownerDocument : document); this.srcWindow = this.srcDocument.defaultView; var self = this, refreshHandler,