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

Have {maxDecimals: 0} enforce whole numbers #14

Open
ericmmartin opened this issue Feb 28, 2015 · 1 comment
Open

Have {maxDecimals: 0} enforce whole numbers #14

ericmmartin opened this issue Feb 28, 2015 · 1 comment

Comments

@ericmmartin
Copy link

I have a use case where we don't want the user to enter in decimal values. We are using the following options:

fcsa-number="{ maxDecimals: 0, preventInvalidInput: true }

I would like for only numbers and commas to be allowed as input. However, I can still enter in a decimal value, I just get an error (red border). I'll see if I can throw a pull-request together for this, but wanted to submit this in case you had any ideas on built-in ways to achieve my use case.

@cory-gottschalk
Copy link

+1 ^
I'm experiencing the same issue. Will this be fixed? Looks like this has been an ongoing issue for almost 2 years :/

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

2 participants