-
Notifications
You must be signed in to change notification settings - Fork 100
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
controlled components made uncontrolled #16
Comments
I changed that in a pull request that was merged to master, but the commits have not yet been included in a release: #15 The PR also changed |
Are you using react-magic or HTMLtoJSX? Thanks for the reminder @ssorallen, I'll cut a release shortly. I was going to bundle some other bug fixes but I can do those separately. |
Just pushed out an update to HTMLtoJSX. As for react-magic, it should already be up to date. |
@Daniel15, where does HTMLtoJSX live? I thought it was part of react-magic. |
HTMLtoJSX is the package on NPM, and is one portion of react-magic. It handles converting HTML to JSX, that's it. React-magic is HTMLtoJSX + automatically converting the whole page to a React component + handling AJAX loading page transitions (ie. clicking URLs). React-magic is more experimental :P The readme in this repo explains what react-magic is, whereas |
In short, this is react-magic: https://github.com/reactjs/react-magic/blob/master/src/magic.js |
Cool, thanks for the explanation. I see the new 0.2.1 package on NPM. |
defaultValue will not work on all types including type="submit" according to the react team it´s a button and not editable by a user. ref: facebook/react#2673 (comment) Is it possible to work around this in HTMLtoJSX? I think and I have the issue that a submit button value can change between two diffing HTML elements. |
Good point on the value of a |
If setting |
@hallgren Aha, I see what you mean by the problem now. First page has an |
I don´t know if it´s possible to update the value on the submit button due to how react.js handles the It work for the |
Is there any way that a controlled component can be updated or made uncontrolled?
For example the
<input type="submit" value="Send"/>
will not update its value on a new value on render.The text was updated successfully, but these errors were encountered: