Skip to content

Commit 437a2c2

Browse files
committed
MAGETWO-35314: It's impossible to add Product with required Custom Options of "Field" and/or "Area" type to Shopping Cart
- Fix for input[type=file]
1 parent c6e638f commit 437a2c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ define([
3939

4040
submitForm: function(form) {
4141
var self = this;
42-
if (form.has('input[type="file"]').length) {
42+
if (form.has('input[type="file"]').length && form.find('input[type="file"]').val() !== '') {
4343
self.element.off('submit');
4444
form.submit();
4545
} else {

0 commit comments

Comments
 (0)