We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a8f8228 + 1d6e9d8 commit 7fb56adCopy full SHA for 7fb56ad
app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js
@@ -542,7 +542,10 @@ define([
542
*/
543
_OnChange: function ($this, $widget) {
544
var $parent = $this.parents('.' + $widget.options.classes.attributeClass),
545
- $input = $parent.find('.' + $widget.options.classes.attributeInput);
+ attributeId = $parent.attr('attribute-id'),
546
+ $input = $widget.productForm.find(
547
+ '.' + $widget.options.classes.attributeInput + '[name="super_attribute[' + attributeId + ']"]'
548
+ );
549
550
if ($this.val() > 0) {
551
$parent.attr('option-selected', $this.val());
0 commit comments