Skip to content

Commit 7fb56ad

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-54044' into PR-P1
2 parents a8f8228 + 1d6e9d8 commit 7fb56ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/code/Magento/Swatches/view/frontend/web/js/swatch-renderer.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,10 @@ define([
542542
*/
543543
_OnChange: function ($this, $widget) {
544544
var $parent = $this.parents('.' + $widget.options.classes.attributeClass),
545-
$input = $parent.find('.' + $widget.options.classes.attributeInput);
545+
attributeId = $parent.attr('attribute-id'),
546+
$input = $widget.productForm.find(
547+
'.' + $widget.options.classes.attributeInput + '[name="super_attribute[' + attributeId + ']"]'
548+
);
546549

547550
if ($this.val() > 0) {
548551
$parent.attr('option-selected', $this.val());

0 commit comments

Comments
 (0)