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

Intercept that filters numbers seems to be letting '.' onto a React form input #1029

Closed
mattruby opened this issue Jun 1, 2017 · 2 comments

Comments

@mattruby
Copy link
Member

mattruby commented Jun 1, 2017

I have a:
2. [X ] Issue:

  • [X ] Provide a minimal sample reproduction. create a reproduction based on this codesandbox

Here's my sample code: https://codesandbox.io/s/G5v71oDA8

I have an intercept that will only allow numbers to be added to model.age. I'm not sure how, but I'm able to add a . onto the input. It will not hit the model, but it will show in the input. If I type another . the first will be removed.

@urugator
Copy link
Collaborator

urugator commented Jun 1, 2017

facebook/react#9584

@mattruby
Copy link
Member Author

mattruby commented Jun 1, 2017

Wow! I searched for this, but no way I was going to find it. Thanks @urugator!

@mattruby mattruby closed this as completed Jun 1, 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

2 participants