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.
1 parent c6e638f commit 437a2c2Copy full SHA for 437a2c2
app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js
@@ -39,7 +39,7 @@ define([
39
40
submitForm: function(form) {
41
var self = this;
42
- if (form.has('input[type="file"]').length) {
+ if (form.has('input[type="file"]').length && form.find('input[type="file"]').val() !== '') {
43
self.element.off('submit');
44
form.submit();
45
} else {
0 commit comments