Skip to content

Commit cb738d1

Browse files
committed
MC-3926: Slide Content Does Not Render After Page Load If Slide Is In Non-Default Tab
Fix frontend rendering
1 parent 7e43bb1 commit cb738d1

File tree

1 file changed

+6
-1
lines changed
  • app/code/Magento/PageBuilder/view/base/web/js/content-type/slider/appearance/default

1 file changed

+6
-1
lines changed

app/code/Magento/PageBuilder/view/base/web/js/content-type/slider/appearance/default/widget.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
define([
77
'jquery',
8+
'Magento_PageBuilder/js/events',
89
'slick'
9-
], function ($) {
10+
], function ($, events) {
1011
'use strict';
1112

1213
return function (config, sliderElement) {
@@ -27,5 +28,9 @@ define([
2728
arrows: $element.data('show-arrows'),
2829
dots: $element.data('show-dots')
2930
});
31+
32+
events.on('contentType:redrawAfter', function () {
33+
$element.slick('setPosition');
34+
});
3035
};
3136
});

0 commit comments

Comments
 (0)