From 44b82222b0aa5c60a949681def6c02902c86585a Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 6 Aug 2017 16:55:26 -0700 Subject: [PATCH] #5549 - Fix regression from offsetTarget change --- src/definitions/modules/popup.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/definitions/modules/popup.js b/src/definitions/modules/popup.js index e0702ea31..5b8af8ee0 100644 --- a/src/definitions/modules/popup.js +++ b/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 ; }