From 00f84c2a39b64ad71fa832c28fa9713b85b7099f Mon Sep 17 00:00:00 2001 From: ComonSoft <13507563+ComonSoft@users.noreply.github.com> Date: Tue, 11 Jun 2024 16:09:26 +0200 Subject: [PATCH] Update product.js Added missing radix to parseint function --- _dev/js/product.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_dev/js/product.js b/_dev/js/product.js index a4630239..cf95ea92 100644 --- a/_dev/js/product.js +++ b/_dev/js/product.js @@ -131,7 +131,7 @@ $(document).ready(() => { $(prestashop.themeSelectors.touchspin).off('touchstart.touchspin'); $quantityInput.on('focusout', () => { - if ($quantityInput.val() === '' || parseInt($quantityInput.val()) < parseInt($quantityInput.attr('min'))) { + if ($quantityInput.val() === '' || parseInt($quantityInput.val(), 10) < parseInt($quantityInput.attr('min'), 10)) { $quantityInput.val($quantityInput.attr('min')); $quantityInput.trigger('change'); }