-
Notifications
You must be signed in to change notification settings - Fork 46.7k
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
Number Input with defaultValue does not accept decimal input #8211
Labels
Comments
Hey! I fixed this with #7750. However it looks like it hasn't made its way to a release yet. |
Totally understandable. Please let me know if I can help in any way. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
When using a number input that has a defaultValue, you cannot enter a decimal value. When attempting to type a decimal, the cursor is moved to the beginning of the input. This behavior is not observed when there is no defaultValue given.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://jsfiddle.net or similar (template: https://jsfiddle.net/reactjs/69z2wepo/).
https://jsfiddle.net/zc0x3egz/
What is the expected behavior?
The input should allow you to type a decimal.
Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
This is happening with React 15.3.2. It does not happen in 0.14.x
The text was updated successfully, but these errors were encountered: