Skip to content

Commit 3410ca3

Browse files
committed
MC-42249: No form validation for negative quantity on bundle products
- Restricted the price calculation on change of quantiy textbox in bundle products.
1 parent a12e8f3 commit 3410ca3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Bundle/view/base/web/js/price-bundle.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ define([
132132
.selections[field.data('optionValueId')];
133133
optionConfig.qty = field.val();
134134

135-
optionInstance.trigger('change');
135+
if(field.valid())
136+
optionInstance.trigger('change');
136137
}
137138
},
138139

0 commit comments

Comments
 (0)