Fixed: Checkbox can be checked when disabled

This commit is contained in:
Qstick 2018-04-29 21:49:18 -04:00
parent 8624ff5c6a
commit 026a2cace5
1 changed files with 4 additions and 0 deletions

View File

@ -69,6 +69,10 @@ class CheckInput extends Component {
}
onClick = (event) => {
if (this.props.isDisabled) {
return;
}
const shiftKey = event.nativeEvent.shiftKey;
const checked = !this._checkbox.checked;