From 7811614d532440f926c29bfbad5698cbec43c052 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Wed, 10 Jul 2019 09:55:32 +0200 Subject: [PATCH] Update popup.js --- core/modules/utils/dom/popup.js | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/core/modules/utils/dom/popup.js b/core/modules/utils/dom/popup.js index 7411a6d8b..fd5ab9b79 100644 --- a/core/modules/utils/dom/popup.js +++ b/core/modules/utils/dom/popup.js @@ -148,17 +148,41 @@ Popup.prototype.show = function(options) { } }; +/* +Detect if a Popup contains an input field that has focus +Returns true or false +*/ +Popup.prototype.detectInputWithinPopup = function(node) { + var withinPopup = false; + for(var i=0; i