From e1bb532d98ffa519015caaf444f079bb99dd9d08 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Sun, 4 Aug 2019 14:01:24 +0200 Subject: [PATCH] Fix popups not being cancelled correctly (#4158) --- core/modules/utils/dom/popup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/modules/utils/dom/popup.js b/core/modules/utils/dom/popup.js index 2b615f411..aa89d705c 100644 --- a/core/modules/utils/dom/popup.js +++ b/core/modules/utils/dom/popup.js @@ -154,11 +154,12 @@ Detect if a Popup contains an input field that has focus Returns true or false */ Popup.prototype.detectInputWithinPopup = function(node) { - var withinPopup = false; + var withinPopup = false, + currNode = node; for(var i=0; i