Skip to content

Commit 82bf86d

Browse files
committed
make checkbox in ToggleEntry readonly
1 parent 2c54e1f commit 82bf86d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/Components/ToggleEntry.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export class ToggleEntry extends Component {
3737
<li>
3838
<a className="checkbox-holder" onClick={this.onClick}>
3939
<input id={this.id} type="checkbox"
40-
checked={this.state.active}/>
40+
checked={this.state.active}
41+
readOnly/>
4142
<label htmlFor={this.id}>{this.props.children}</label>
4243
</a>
4344
</li>

0 commit comments

Comments
 (0)