Commit 9386c868 authored by Daniel Stutzman's avatar Daniel Stutzman

Bug fix: clicking toggle-all checkbox didn't affect all checkboxes...

Bug fix: clicking toggle-all checkbox didn't affect all checkboxes consistently, since setting checked to null means "don't sync with React"
parent 64ee2028
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
<input <input
className="toggle" className="toggle"
type="checkbox" type="checkbox"
checked={this.props.todo.completed ? 'checked' : null} checked={this.props.todo.completed}
onChange={this.props.onToggle} onChange={this.props.onToggle}
/> />
<label onDoubleClick={this.handleEdit}> <label onDoubleClick={this.handleEdit}>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment