-
Notifications
You must be signed in to change notification settings - Fork 47k
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
Bug: <input type="number"> resets value if @value or @defaultValue is provided #8717
Comments
Dibs! Gonna play around with it and see what I can do to fix the issue. |
So my investigation shows that... it's already fixed with this commit. Although unfortunately it is not released yet. |
@Andarist it seems like that commit might fix a problem only with uncontrolled input, but the issue happens as well with controlled inputs, when |
Yeah, you are right, but I think there is nothing to be fixed on Check out this demo and inspect the
It seems that |
cc @nhunzaker who worked on related things before. |
Thanks!
Yes! @gaearon we could probably cherry pick this to 15.x pretty safely. What do you think?
@ixrock Yes! I've been maintaining a PR for controlled inputs: #7359.
@Andarist I think |
This commit was in 15.4.2, no? |
Argh, I forgot to mention it in the changelog. Sorry. |
Updated the changelog. 6b1c860 |
Anything else to do here? |
Should be good to close, the behavior appears to be fixed in 15.4.2 |
Demo:
http://codepen.io/anon/pen/LxpyLB
Problem:
<input type=number>
resets its value when I type "." instead of default behaviour (trigger input::invalid html5 state).Source code if demo not available:
The text was updated successfully, but these errors were encountered: