Skip to content

Commit e6cfdb3

Browse files
committed
MC-19500: fix related-product changes affection on third party extensions
1 parent 8bc73be commit e6cfdb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Catalog/view/frontend/web/js/related-products.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ define([
2626
* @private
2727
*/
2828
_create: function () {
29-
$(this.options.selectAllLink).on('click', $.proxy(this._selectAllRelated, this));
30-
$(this.options.relatedCheckbox).on('click', $.proxy(this._addRelatedToProduct, this));
29+
$(this.options.selectAllLink, this.element).on('click', $.proxy(this._selectAllRelated, this));
30+
$(this.options.relatedCheckbox, this.element).on('click', $.proxy(this._addRelatedToProduct, this));
3131
this._showRelatedProducts(
3232
this.element.find(this.options.elementsSelector),
3333
this.element.data('limit'),

0 commit comments

Comments
 (0)