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
[react] value doesn't update on the component #92
Comments
Thanks, let me have a look at this. |
@periabyte The fiddle link mark down seems not working properly. should be jsfiddle |
@cht8687 cheers, I edited it, fine now |
Fix applied, some explanation for the fix: Inside the cleave component, no doubt input.value is bound to the value state, however, this only happens internally, the state can't be shared with parent components. In the fix, I added a Check this: https://jsfiddle.net/nosir/wqm8pm6c/ If you need to update/reset the cleave field value from model, this is the way:
|
If you put a $ sign on |
Will close this, please reopen if there is any issue. |
component
value
doesn't update after setting the state (which is passed to props as value)here's a jsfiddle( https://jsfiddle.net/w6w30Lv7/) to show the bug.
The text was updated successfully, but these errors were encountered: