Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Users lose their input if they try to type a second decimal separator #10

Open
andreidiaconu opened this issue Sep 7, 2020 · 2 comments

Comments

@andreidiaconu
Copy link

Not sure if relevant but I'm using a Locale where decimal separators are , eg: 12.345,67

Steps to reproduce:

  1. Simple Text field with a ThousandsFormatter(allowFraction: true) input formatter.
  2. Type 12345,67 which renders as 12.345,67
  3. Continue by typing ,

Expected:

  1. You see 12345,67

Actual:

  1. 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.

@andreidiaconu andreidiaconu changed the title Users lose number if they try to type a second decimal separator Users lose their input if they try to type a second decimal separator Sep 7, 2020
@Sun3
Copy link

Sun3 commented Sep 15, 2020

I also can duplicate this same issue as @andreidiaconu but in my case, I use the period . to separate decimals.

@minhdanh
Copy link
Contributor

I'm still having this issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants