Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update assets/js/base/components/quantity-selector/index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley authored Dec 15, 2021
1 parent e18d656 commit 79fd824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/base/components/quantity-selector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const QuantitySelector = ( {
value = isNaN( value ) ? quantity : value;

if ( value !== quantity ) {
// we commit this value immideatly.
// we commit this value immediately.
onChange( value );
// but once the customer has stopped typing, we make sure his value is respecting the bounds (maximum value, minimum value, step value), and commit the normlized value.
normalizeQuantity( value );
Expand Down

0 comments on commit 79fd824

Please sign in to comment.