This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Commit a24777a
committed
fix(input): fix
Previously, the validation would incorrectly fail in certain cases (e.g.
`step: 0.01`, `value: 1.16 or 20.1`), due to Floating Point Arithmetic
limitations. The previous fix for FPA limitations (081d06f) tried to solve the
issue by converting the numbers to integers, before doing the actual
calculation, but it failed to account for cases where the conversion itself
returned non-integer values (again due to FPA limitations).
This commit fixes it by ensuring that the values used in the final calculation
are always integers.
Fixes #15504
Closes #15506step validation for input[type=number/range]
1 parent 99a3adb commit a24777a
2 files changed
+31
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1565 | 1565 | | |
1566 | 1566 | | |
1567 | 1567 | | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1568 | 1572 | | |
1569 | 1573 | | |
1570 | | - | |
1571 | | - | |
| 1574 | + | |
| 1575 | + | |
| 1576 | + | |
| 1577 | + | |
| 1578 | + | |
| 1579 | + | |
1572 | 1580 | | |
1573 | 1581 | | |
1574 | 1582 | | |
1575 | 1583 | | |
1576 | 1584 | | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
1577 | 1589 | | |
1578 | 1590 | | |
1579 | 1591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2787 | 2787 | | |
2788 | 2788 | | |
2789 | 2789 | | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
2790 | 2797 | | |
2791 | 2798 | | |
2792 | 2799 | | |
| |||
3656 | 3663 | | |
3657 | 3664 | | |
3658 | 3665 | | |
3659 | | - | |
| 3666 | + | |
| 3667 | + | |
| 3668 | + | |
3660 | 3669 | | |
3661 | 3670 | | |
3662 | 3671 | | |
| |||
3681 | 3690 | | |
3682 | 3691 | | |
3683 | 3692 | | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
3684 | 3700 | | |
3685 | 3701 | | |
3686 | 3702 | | |
| |||
0 commit comments