Allow disabling an ha-form (#10218)

This commit is contained in:
Paulus Schoutsen
2021-10-09 03:41:36 -07:00
committed by GitHub
parent 774f22b7e7
commit 9bf41a37b4
12 changed files with 85 additions and 18 deletions

View File

@@ -20,6 +20,8 @@ class HaDurationInput extends LitElement {
@property({ type: Boolean }) public enableMillisecond?: boolean;
@property({ type: Boolean }) public disabled = false;
@query("paper-time-input", true) private _input?: HTMLElement;
public focus() {
@@ -34,6 +36,7 @@ class HaDurationInput extends LitElement {
.label=${this.label}
.required=${this.required}
.autoValidate=${this.required}
.disabled=${this.disabled}
error-message="Required"
enable-second
.enableMillisecond=${this.enableMillisecond}