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 7005d99 commit 5847d9fCopy full SHA for 5847d9f
app/code/Magento/Checkout/view/frontend/web/js/shopping-cart.js
@@ -14,10 +14,11 @@ define([
14
_create: function () {
15
var items, i, reload;
16
17
- $(this.options.emptyCartButton).on('click', $.proxy(function (event) {
+ $(this.options.emptyCartButton).on('click', $.proxy(function () {
18
$(this.options.emptyCartButton).attr('name', 'update_cart_action_temp');
19
$(this.options.updateCartActionContainer)
20
.attr('name', 'update_cart_action').attr('value', 'empty_cart');
21
+
22
if ($(this.options.emptyCartButton).parents('form').length > 0) {
23
$(this.options.emptyCartButton).parents('form').submit();
24
}
0 commit comments