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

decimalPrecision={false} allows decimals #39

Closed
cezar-gradinariu opened this issue Mar 9, 2017 · 3 comments
Closed

decimalPrecision={false} allows decimals #39

cezar-gradinariu opened this issue Mar 9, 2017 · 3 comments

Comments

@cezar-gradinariu
Copy link

Whenever I have decimalPrecision={false} as per doc, it still allows me to input decimals in, and in fact it allows to put huge number of them.

It looks like a bug, Is this intended?

Cheers,
Cezar.

@alexandrapersea
Copy link
Contributor

If decimalPrecision is set to false it does not limit decimal place meaning it doesn't have a limit to how many decimals a user can type. If set to true/number if will limit to 2/the number specified.

I think decimalSeparator is what you are meaning to use. If set to false it won't allow decimals in input.

Hope this helps!

@cezar-gradinariu
Copy link
Author

cezar-gradinariu commented Mar 9, 2017 via email

@s-yadav
Copy link
Owner

s-yadav commented Jun 18, 2017

Decimal precision now only allows numeric value to make it less ambiguous. Updated it 2.0.0 alpha

@s-yadav s-yadav closed this as completed Jun 18, 2017
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