We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
On 0.14-beta1, the following example does not work:
var WithoutMixin = React.createClass({ getInitialState: function() { return {message: 'Hello!'}; }, handleChange: function(newValue) { this.setState({message: newValue}); }, render: function() { var valueLink = { value: this.state.message, requestChange: this.handleChange }; return <input type="text" valueLink={valueLink} />; } });
The console shows Uncaught TypeError: Cannot read property 'value' of undefined when typing into the input field
Uncaught TypeError: Cannot read property 'value' of undefined
fwiw, event.currentTarget seems to be set correctly.
event.currentTarget
Is there a workaround or fix for this?
Thanks
The text was updated successfully, but these errors were encountered:
This was fixed in #4311 (after beta 1). currentTarget or event.nativeEvent.target should work.
Sorry, something went wrong.
No branches or pull requests
On 0.14-beta1, the following example does not work:
The console shows
Uncaught TypeError: Cannot read property 'value' of undefined
when typing into the input fieldfwiw,
event.currentTarget
seems to be set correctly.Is there a workaround or fix for this?
Thanks
The text was updated successfully, but these errors were encountered: