Browse Source

Fixes #3887 element removed from DOM would cause popup to be closed

pull/4046/head
Jack Lukic 8 years ago
parent
commit
50f5d8d74b
1 changed files with 1 additions and 1 deletions
  1. 2
      src/definitions/modules/popup.js

2
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();
}

Loading…
Cancel
Save