-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
Prevent non-numeric input #614
Comments
Is it possible to do this in controlled mode? |
Are you asking me? I'm not sure what you mean. I guess I need to intercept the onChange or something and prevent anything but numbers/decimals? |
Just in case, the In BlueprintJS the prop is called |
I need this too. first thing is to enable
but the problem with this is that not handle edge cases like copy and paste a number. and this point, the solution it's getting too complex. |
Is there a way to prevent non-numeric input entirely, rather than stripping it out?
For example I can type "foo" into the input, and it's displayed as a value, but then stripped when I blur the field. I need to prevent those characters from being typed in at all. I tried pattern/inputMode just in case but neither do what I need.
Is this possible?
The text was updated successfully, but these errors were encountered: