Answer the question
In order to leave comments, you need to log in
Is it a bug or am I misunderstanding something in the code?
Strange affair...
handleChange(event) {
var checked = event.target.checked
if(checked) {
console.log(event.target.checked)
this.setState({
disabled: !event.target.checked
});
} else {
console.log(event.target.checked)
this.setState({
disabled: true
});
}
}
handleChange(event) {
var checked = event.target.checked
if(checked) {
console.log(event.target.checked)
this.setState({
disabled: !event.target.checked
});
} else {
console.log(event.target.checked)
this.setState({
disabled: event.target.checked
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question