Name field in helper forms should not init in the error state (#17111)

This commit is contained in:
karwosts
2023-06-30 08:06:46 -07:00
committed by GitHub
parent ede7daad1a
commit e7c47ef65c
9 changed files with 27 additions and 27 deletions

View File

@@ -56,7 +56,6 @@ class HaInputDateTimeForm extends LitElement {
if (!this.hass) {
return nothing;
}
const nameInvalid = !this._name || this._name.trim() === "";
return html`
<div class="form">
@@ -67,10 +66,11 @@ class HaInputDateTimeForm extends LitElement {
.label=${this.hass!.localize(
"ui.dialogs.helper_settings.generic.name"
)}
.errorMessage=${this.hass!.localize(
autoValidate
required
.validationMessage=${this.hass!.localize(
"ui.dialogs.helper_settings.required_error_msg"
)}
.invalid=${nameInvalid}
dialogInitialFocus
></ha-textfield>
<ha-icon-picker