- 
                Notifications
    
You must be signed in to change notification settings  - Fork 49.7k
 
Closed
Description
Consider this input:
<input
    type='radio'
    value='2'
    checked={this.state.value === '1'}
    onChange={this.onChange}
/>
onChange: function (e) {
    this.setState({value: e.target.value});
}
If the first time the component is rendered, this.state.value === '1', then this input will remain checked forever in the DOM, even if it appears unchecked visually. For instance this can happen with
getInitialState = function() {
    return {value: '1'};
}
I am using React 0.14.7.
finom
Metadata
Metadata
Assignees
Labels
No labels