Users lose their input if they try to type a second decimal separator
andreidiaconu opened this issue · 2 comments
andreidiaconu commented
Not sure if relevant but I'm using a Locale where decimal separators are ,
eg: 12.345,67
Steps to reproduce:
- Simple Text field with a
ThousandsFormatter(allowFraction: true)
input formatter. - Type
12345,67
which renders as12.345,67
- Continue by typing
,
Expected:
- You see
12345,67
Actual:
- You see
0,
As it happens, I needed to do some other formatting and I fixed this by adding a formatter before ThousandsFormatter, which makes sure that a second ,
is not possible to type.
Sun3 commented
I also can duplicate this same issue as @andreidiaconu but in my case, I use the period . to separate decimals.
minhdanh commented
I'm still having this issue as well.