diff --git a/web/src/elements/stages/form.ts b/web/src/elements/stages/form.ts index e696edbf1..a49b1f883 100644 --- a/web/src/elements/stages/form.ts +++ b/web/src/elements/stages/form.ts @@ -19,6 +19,12 @@ export class FormElement extends LitElement { @property({ attribute: false }) errors?: Error[]; + updated(): void { + this.querySelectorAll("input[autofocus]").forEach(input => { + input.focus(); + }); + } + render(): TemplateResult { return html`