diff --git a/_dev/js/product.js b/_dev/js/product.js index a3b9bed6..446a7c3c 100644 --- a/_dev/js/product.js +++ b/_dev/js/product.js @@ -132,7 +132,7 @@ $(document).ready(() => { $quantityInput.on('focusout', () => { if ( - $quantityInput.val() === '' + $quantityInput.val() === '' || parseInt($quantityInput.val(), 10) < parseInt($quantityInput.attr('min'), 10) ) { $quantityInput.val($quantityInput.attr('min'));