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
I am using the CurrencyInputFormatter with a leading symbol (let's say EUR).
When I enter a non-zero digit the cursor is positioned correctly next to the period (which is correct an expected behavior) - example: in an empty field I input 1. The result is EUR1|.00 where | is the cursor position.
But when I enter 0, the cursor is not positioned correctly - example: in an empty field I input 0. The result is E|UR0.00.
I would appreciate a fix for this issue :)
The text was updated successfully, but these errors were encountered:
I add two formatters before and after the CurrencyInputFormatter - the first one detects this issue, changes the 0 to a 1, then CurrencyInputFormatter sets the cursor position correctly, then the second one changes the 1 back to a 0. A List is used to pass the boolean by reference.
I am using the CurrencyInputFormatter with a leading symbol (let's say
EUR
).When I enter a non-zero digit the cursor is positioned correctly next to the period (which is correct an expected behavior) - example: in an empty field I input
1
. The result isEUR1|.00
where|
is the cursor position.But when I enter
0
, the cursor is not positioned correctly - example: in an empty field I input0
. The result isE|UR0.00
.I would appreciate a fix for this issue :)
The text was updated successfully, but these errors were encountered: