From 87fff4e3385add44e7660f9103dcd6d9d3504dbe Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Mon, 18 Feb 2019 09:14:39 +0100 Subject: [PATCH] fixed intermediate on non triple-state checkbox --- front/core/components/check/check.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/front/core/components/check/check.js b/front/core/components/check/check.js index 473128a27..bef95e29d 100644 --- a/front/core/components/check/check.js +++ b/front/core/components/check/check.js @@ -38,9 +38,10 @@ export default class Controller extends Component { } get isIntermediate() { - return this.intermediate - || this.model === null - || this.model === undefined; + if (this.intermediate || (this.tripleState && (this.model === null || this.model === undefined))) + return true; + + return false; } get isChecked() {