diff --git a/core/modules/utils/dom/popup.js b/core/modules/utils/dom/popup.js index e5fec19a9..4454b9a3d 100644 --- a/core/modules/utils/dom/popup.js +++ b/core/modules/utils/dom/popup.js @@ -110,10 +110,32 @@ Popup.prototype.popupInfo = function(domNode) { Display a popup by adding it to the stack */ Popup.prototype.show = function(options) { - // Find out what was clicked on - var info = this.popupInfo(options.domNode); - // Cancel any higher level popups - this.cancel(info.popupLevel); + var cancelLevel; + // Cancel any popups who aren't an ancestor of the current node + for(var t=0; t