diff --git a/textfield/internal/text-field.ts b/textfield/internal/text-field.ts index 5cb8b60b29..08c8c03ea2 100644 --- a/textfield/internal/text-field.ts +++ b/textfield/internal/text-field.ts @@ -779,4 +779,10 @@ export abstract class TextField extends LitElement { formStateRestoreCallback(state: string) { this.value = state; } + + override focus() { + // Required for the case that the user slots a focusable element into the + // leading icon slot such as an iconbutton due to how delegatesFocus works. + this.getInputOrTextarea().focus(); + } }