Skip to content

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

@andreidiaconu

Description

@andreidiaconu

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions