From b3512ef9710f635f17cc46af01ac624368404c5e Mon Sep 17 00:00:00 2001 From: Michael Malone Date: Wed, 2 Aug 2023 11:22:45 +1200 Subject: [PATCH] fix(attach-focus): focus the element as injected If we don't store the element reference on the class, then the attach focus attribute will do nothing. --- src/resources/attach-focus.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/resources/attach-focus.ts b/src/resources/attach-focus.ts index a041505..a14bab5 100644 --- a/src/resources/attach-focus.ts +++ b/src/resources/attach-focus.ts @@ -23,6 +23,7 @@ export class AttachFocus implements ComponentAttached { constructor(private element: HTMLElement) { this.value = true; + this.element = element; } public attached(): void {