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.