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

Issue with maximumFractionDigits #13

Open
jagkum opened this issue Mar 28, 2017 · 0 comments
Open

Issue with maximumFractionDigits #13

jagkum opened this issue Mar 28, 2017 · 0 comments

Comments

@jagkum
Copy link

jagkum commented Mar 28, 2017

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?

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

1 participant