Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Exclude checkbox from validity check

Robin Dekkers3fa5f910f3e5
diff --git a/ui/component/or-input/src/index.ts b/ui/component/or-input/src/index.ts
index a185b7bbd..620a05c95 100644
--- a/ui/component/or-input/src/index.ts
+++ b/ui/component/or-input/src/index.ts
@@ -1262,7 +1262,7 @@ export class OrInput extends LitElement {
if (this._mdcComponent instanceof MDCTextField) {
this._mdcComponent.valid = valid;
}
- if(!valid) return
+ if(!valid && this.type != InputType.CHECKBOX) return
}
const previousValue = this.value;