mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
Name field in helper forms should not init in the error state (#17111)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user