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 65d27f5 + 10955cd commit 50ff419Copy full SHA for 50ff419
app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js
@@ -38,6 +38,11 @@ define([
38
_bindSubmit: function () {
39
var self = this;
40
41
+ if (this.element.data('catalog-addtocart-initialized')) {
42
+ return;
43
+ }
44
+
45
+ this.element.data('catalog-addtocart-initialized', 1);
46
this.element.on('submit', function (e) {
47
e.preventDefault();
48
self.submitForm($(this));
0 commit comments