-
Notifications
You must be signed in to change notification settings - Fork 47.4k
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
String values for input[type='number'] & input[type='range'] #1425
Comments
Seems like a :+1 if it can be reasonably solved, I'm curious though, is it possible to somehow cause those inputs to give anything BUT numbers? Say if you were to manually enter text into them or clear them? |
Reporting value |
ReactNative's Input has an We'd probably need to figure out:
Is this feature worth considering, or are we comfortable pushing this to the community? |
@nhunzaker I think it's reasonable to push this to the community. There doesn't seem to be a high demand for this in React core, so let's defer to user-land and close this out 👍 |
May I ask why was this closed and what is the solution? Intuitively I would think that a number type input would return a number type value, right? |
Enhancement proposal: create
numberLink
or make e.target.value return value of type number for input with typesrange
&number
.Reasoning:
Partial work around would be using
According to docs.
Demonstration of number & range inputs for React & vanilla js in jsbin.
The text was updated successfully, but these errors were encountered: