Skip to content

Commit 657c732

Browse files
ENGCOM-1639: [Backport] Fix to allow use decimals less then 1 in subproducts qty #15407
- Merge Pull Request #15407 from rogyar/magento2:2.1-js-validation-fix - Merged commits: 1. e8087c5
2 parents d1c4cfc + e8087c5 commit 657c732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/mage/validation/validation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
var val = $(e).val();
2626
if (val && val.length > 0) {
2727
result = true;
28-
var valInt = parseInt(val, 10) || 0;
28+
var valInt = parseFloat(val) || 0;
2929
if (valInt >= 0) {
3030
total += valInt;
3131
} else {

0 commit comments

Comments
 (0)