Skip to content

Commit

Permalink
add unique class to instantialized grids not to break widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
danrcoull committed Feb 3, 2020
1 parent 2d0cc1a commit 7ff8e47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion view/frontend/web/css/source/_module.less
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
animation-direction: reverse;
}

.grid.products-grid .product-items {
.infinate .product-items {
opacity: 0;
}

Expand Down
3 changes: 2 additions & 1 deletion view/frontend/web/js/scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ define(['uiComponent', 'jquery', 'infinatescroll', "mage/template", 'imagesloade
defaults: {
settings: {
enable: true,
$element: $('.products.list.items.product-items'),
$element: $('.product-items'),
analytics: true,
status: true,
text: 'No more products',
Expand All @@ -41,6 +41,7 @@ define(['uiComponent', 'jquery', 'infinatescroll', "mage/template", 'imagesloade
$.extend(true, self.settings, config.settings);

self.settings.$element = $(element)
self.settings.$element.addClass('infinate');

console.log(self.config)

Expand Down

0 comments on commit 7ff8e47

Please sign in to comment.