Skip to content

Issue with maximumFractionDigits #13

@jagkum

Description

@jagkum

I have used this component. It has many localization features and most of the scenarios seems working fine. But following scenario doesn't work for me as expected.

I created Numberformat as;

let numberFormat = new Intl.NumberFormat('en-US', {style = 'decimal', maximumFractionDigits = 2});

Once I create as;

              <NumberFormatInput
                    numberFormat={numberFormat}
                    value={this.state.value}
                    onChange={this.onChange}
                    key={this.props.id}
                />

When I type 1 it convert as 0.01 while I am expecting 1.00
Is it normal behavior of this component or can we configure it to read from left to right?

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