Browse Source

#5549 - Fix regression from offsetTarget change

pull/4273/merge
Jack 7 years ago
parent
commit
44b82222b0
1 changed files with 2 additions and 2 deletions
  1. 4
      src/definitions/modules/popup.js

4
src/definitions/modules/popup.js

@ -125,7 +125,7 @@ $.fn.popup = function(parameters) {
}
if(settings.popup) {
$popup.addClass(className.loading);
$offsetParent = module.get.offsetParent($target);
$offsetParent = module.get.offsetParent();
$popup.removeClass(className.loading);
if(settings.movePopup && module.has.popup() && module.get.offsetParent($popup)[0] !== $offsetParent[0]) {
module.debug('Moving popup to the same offset parent as target');
@ -139,7 +139,7 @@ $.fn.popup = function(parameters) {
$offsetParent = (settings.inline)
? module.get.offsetParent($target)
: module.has.popup()
? module.get.offsetParent($target)
? module.get.offsetParent($popup)
: $body
;
}

Loading…
Cancel
Save