Skip to content

Commit

Permalink
Merge pull request #1418 from jbruni/patch-2
Browse files Browse the repository at this point in the history
Fix cart item quantity change rollback
  • Loading branch information
junedkazi authored Jan 14, 2019
2 parents 637ef1b + e6b6d2c commit f47f1d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- Major performance improvements. Reduce Javascript bundle size from 376kb to 286kb. [#1390](https://github.com/bigcommerce/cornerstone/pull/1390)
- Fixed breadcrumbs for product and category pages [#1403](https://github.com/bigcommerce/cornerstone/pull/1403)
- Send GA tracking event whenever the last product is removed from the CART[#1409](https://github.com/bigcommerce/cornerstone/pull/1409)
- Fix cart item quantity change rollback [#1418](https://github.com/bigcommerce/cornerstone/pull/1418)

## 3.0.0 (2018-12-21)
### Breaking Changes
Expand Down
2 changes: 1 addition & 1 deletion assets/js/theme/cart.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ export default class Cart extends PageManager {
});

// cart qty manually updates
$('.cart-item-qty-input', this.$cartContent).on('focus', () => {
$('.cart-item-qty-input', this.$cartContent).on('focus', function onQtyFocus() {
preVal = this.value;
}).change(event => {
const $target = $(event.currentTarget);
Expand Down

0 comments on commit f47f1d8

Please sign in to comment.