diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index 2aec74bc0..12b6e4619 100644 --- a/src/definitions/modules/popup.js +++ b/src/definitions/modules/popup.js @@ -197,7 +197,7 @@ $.fn.popup = function(parameters) { inPopup = ($target.closest(selector.popup).length > 0) ; // don't close on clicks inside popup - if(event && $(event.target).closest(selector.popup).length === 0) { + if(event && !inPopup && isInDOM) { module.debug('Click occurred outside popup hiding popup'); module.hide(); }