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 79613c0 + 1206e78 commit 1fcd1a4Copy full SHA for 1fcd1a4
app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js
@@ -33,6 +33,10 @@ define([
33
34
_bindSubmit: function() {
35
var self = this;
36
+ if (this.element.data('catalog-addtocart-initialized')) {
37
+ return;
38
+ }
39
+ this.element.data('catalog-addtocart-initialized', 1);
40
this.element.on('submit', function(e) {
41
e.preventDefault();
42
self.submitForm($(this));
0 commit comments