Skip to content

Commit 7f46b3d

Browse files
committed
AC-13373: Configurable product lose options when added to wishlist
1 parent 044d35d commit 7f46b3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Wishlist/view/frontend/web/js/add-to-wishlist.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ define([
5555

5656
for (key in options.productType) {
5757
if (options.productType.hasOwnProperty(key) && options.productType[key] + 'Info' in options) {
58-
events['change ' + options[options.productType[key] + 'Info']] = dataUpdateFunc;
58+
events['addToWishlist ' + options[options.productType[key] + 'Info']] = dataUpdateFunc;
5959
}
6060
}
6161
this._on(events);
@@ -73,7 +73,7 @@ define([
7373
for (key in this.options.productType) {
7474
if (this.options.productType.hasOwnProperty(key)
7575
&& this.options.productType[key] + 'Info' in this.options) {
76-
$(this.options[this.options.productType[key] + 'Info']).trigger('change');
76+
$(this.options[this.options.productType[key] + 'Info']).trigger('addToWishlist');
7777
}
7878
}
7979
},

0 commit comments

Comments
 (0)