${this._error
@@ -136,11 +143,11 @@ class DialogTodoItemEditor extends LitElement {
.label=${this.hass.localize("ui.components.todo.item.summary")}
.value=${this._summary}
required
+ autofocus
@input=${this._handleSummaryChanged}
.validationMessage=${this.hass.localize(
"ui.common.error_required"
)}
- dialogInitialFocus
.disabled=${!canUpdate}
>
@@ -203,41 +210,43 @@ class DialogTodoItemEditor extends LitElement {
`
: nothing}
- ${isCreate
- ? html`
-
- ${this.hass.localize("ui.components.todo.item.add")}
-
- `
- : html`
-
- ${this.hass.localize("ui.components.todo.item.save")}
-
- ${this._todoListSupportsFeature(
- TodoListEntityFeature.DELETE_TODO_ITEM
- )
- ? html`
-
- ${this.hass.localize("ui.components.todo.item.delete")}
-
- `
- : ""}
- `}
-
+