From 8005c91e79cf1cbafe7aee64ff99398149d83c18 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Sat, 28 Nov 2020 08:26:47 +0100 Subject: [PATCH] Correctly add EventListener 'click' for popup-handling in new windows (#5127) --- core/modules/startup/windows.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/modules/startup/windows.js b/core/modules/startup/windows.js index 16b8f0316..5c867f74d 100644 --- a/core/modules/startup/windows.js +++ b/core/modules/startup/windows.js @@ -84,11 +84,8 @@ exports.startup = function() { name: "keydown", handlerObject: $tw.keyboardManager, handlerMethod: "handleKeydownEvent" - },{ - name: "click", - handlerObject: $tw.popup, - handlerMethod: "handleEvent" }]); + srcWindow.document.documentElement.addEventListener("click",$tw.popup,true); srcWindow.haveInitialisedWindow = true; }); // Close open windows when unloading main window