-
Notifications
You must be signed in to change notification settings - Fork 416
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
Allow value prop to set value always, not just initially #28
Comments
It is allowed to change value later on. See https://github.com/s-yadav/react-number-format/blob/master/src/number_format.js#L41 |
Strange I tried this, and it works. Can you try with latest build |
Can you setup a codepen / jsfiddle for it. ? Cant reproduce. |
There is a possible fix on 2.0.0 alpha as now it block adding leading 0s. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This would be useful as I pass a different value into this component than persists on the dom. For instance, this component's input can hold 00001, but I would pass this as a value=1 to prevent leading zeroes.
The text was updated successfully, but these errors were encountered: