From 5277860aff584d155d6d559e7232ca0046d77027 Mon Sep 17 00:00:00 2001 From: "jean-christophe.alleman" Date: Tue, 20 Nov 2018 15:27:08 +0100 Subject: [PATCH] fix(oui-checkbox): fix error class display condition --- packages/oui-checkbox/src/checkbox.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/oui-checkbox/src/checkbox.controller.js b/packages/oui-checkbox/src/checkbox.controller.js index 0e9658d7..053b27da 100644 --- a/packages/oui-checkbox/src/checkbox.controller.js +++ b/packages/oui-checkbox/src/checkbox.controller.js @@ -41,7 +41,7 @@ export default class { if (!this.form || !this.form[this.name]) { return false; } - return (!this.form[this.name].$dirty || this.form.$submitted) && !this.focused && this.form[this.name].$invalid; + return (this.form[this.name].$dirty || this.form.$submitted) && !this.focused && this.form[this.name].$invalid; } _updateIndeterminateState (model) {