You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using AutoNumeric with the 2 decimals options, on an input tag which has an initial value of, for example, 2.3e-10, the input correctly shows 0.00. However, when we also use the rawValueDivisor option to 100, then the input is initially filled with the value 2.3, even though 2.3e-10 * 100 is 2.3e-8, which is still 0.00 when rounded.
The moment you hover your mouse over the input, it immediately corrects itself and shows 0.00, as it should be.
Expected behavior
The rawValueDivisor option shouldn't cause wrong values to be shown in the input tag.
Steps to reproduce the problem
Use autoNumeric version v4.10.2
In the browser Edge version 120.0.2210.91
On the Windows operating system
Then instantiate the autoNumeric object with the following options:
The text was updated successfully, but these errors were encountered:
tbaart435
changed the title
rawValueDivisor causing unexpected behavior when the input number contains an exponent
rawValueDivisor causing unexpected behavior when the input value contains an exponent
Jan 8, 2024
Current behavior
Using AutoNumeric with the 2 decimals options, on an input tag which has an initial value of, for example, 2.3e-10, the input correctly shows 0.00. However, when we also use the rawValueDivisor option to 100, then the input is initially filled with the value 2.3, even though 2.3e-10 * 100 is 2.3e-8, which is still 0.00 when rounded.
The moment you hover your mouse over the input, it immediately corrects itself and shows 0.00, as it should be.
Expected behavior
The rawValueDivisor option shouldn't cause wrong values to be shown in the input tag.
Steps to reproduce the problem
v4.10.2
Edge
version120.0.2210.91
Windows
operating systemLink to live example (CodePen)
The text was updated successfully, but these errors were encountered: