Skip to content

Commit 76f73b0

Browse files
committed
PB-46: Parallax Is Broken On Slide Out Forms
1 parent 025189c commit 76f73b0

File tree

1 file changed

+1
-5
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/row/appearance/default

1 file changed

+1
-5
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/row/appearance/default/widget-mixin.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ define(['underscore', 'jquery', 'Magento_PageBuilder/js/events'], function (_, $
2323
// Listen for full screen events and destroy and rebuild jarallax
2424
events.on('stage:' + stageId + ':fullScreenModeChangeAfter', function () {
2525
_.delay(function () {
26-
try {
27-
window.jarallax($element[0], 'destroy');
28-
} catch (e) {
29-
// Failure of destroying is acceptable
30-
}
26+
$element.jarallax('destroy');
3127
target(config, element);
3228
}, 350);
3329
});

0 commit comments

Comments
 (0)