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 as 12.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.
Not sure if relevant but I'm using a Locale where decimal separators are
,eg: 12.345,67Steps to reproduce:
ThousandsFormatter(allowFraction: true)input formatter.12345,67which renders as12.345,67,Expected:
12345,67Actual:
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.