Skip to content

Commit

Permalink
ENGCOM-4400: Fix: Cart is emptied when enter is pressed after changin…
Browse files Browse the repository at this point in the history
…g product quantity #21509
  • Loading branch information
sivaschenko authored Mar 8, 2019
2 parents 8d0b856 + 765e149 commit 25e73e4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ define([
_create: function () {
var items, i, reload;

$(this.options.emptyCartButton).on('click', $.proxy(function () {
$(this.options.emptyCartButton).on('click', $.proxy(function (event) {
if (event.detail === 0) {
return;
}

$(this.options.emptyCartButton).attr('name', 'update_cart_action_temp');
$(this.options.updateCartActionContainer)
.attr('name', 'update_cart_action').attr('value', 'empty_cart');
Expand Down

0 comments on commit 25e73e4

Please sign in to comment.