mirror of
https://github.com/Lidarr/Lidarr
synced 2026-05-08 12:33:04 +02:00
Fixed: Checkbox can be checked when disabled
This commit is contained in:
parent
8624ff5c6a
commit
026a2cace5
1 changed files with 4 additions and 0 deletions
|
|
@ -69,6 +69,10 @@ class CheckInput extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
onClick = (event) => {
|
onClick = (event) => {
|
||||||
|
if (this.props.isDisabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const shiftKey = event.nativeEvent.shiftKey;
|
const shiftKey = event.nativeEvent.shiftKey;
|
||||||
const checked = !this._checkbox.checked;
|
const checked = !this._checkbox.checked;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue