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