fixed intermediate on non triple-state checkbox
gitea/salix/dev This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-02-18 09:14:39 +01:00
parent 7e6cb91c89
commit 87fff4e338
1 changed files with 4 additions and 3 deletions

View File

@ -38,9 +38,10 @@ export default class Controller extends Component {
} }
get isIntermediate() { get isIntermediate() {
return this.intermediate if (this.intermediate || (this.tripleState && (this.model === null || this.model === undefined)))
|| this.model === null return true;
|| this.model === undefined;
return false;
} }
get isChecked() { get isChecked() {