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 8d0b856 + 765e149 commit 25e73e4Copy full SHA for 25e73e4
app/code/Magento/Checkout/view/frontend/web/js/shopping-cart.js
@@ -14,7 +14,11 @@ define([
14
_create: function () {
15
var items, i, reload;
16
17
- $(this.options.emptyCartButton).on('click', $.proxy(function () {
+ $(this.options.emptyCartButton).on('click', $.proxy(function (event) {
18
+ if (event.detail === 0) {
19
+ return;
20
+ }
21
+
22
$(this.options.emptyCartButton).attr('name', 'update_cart_action_temp');
23
$(this.options.updateCartActionContainer)
24
.attr('name', 'update_cart_action').attr('value', 'empty_cart');
0 commit comments