Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit 2d3c6c9

Browse files
muankoddsson
andauthored
HTMLAnchorElement is HTMLElement
Co-authored-by: Kristján Oddsson <[email protected]>
1 parent d4223cb commit 2d3c6c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type Target = Disableable | Focusable
55

66
type Disableable = HTMLButtonElement | HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement
77

8-
type Focusable = HTMLAnchorElement | HTMLElement
8+
type Focusable = HTMLElement
99

1010
function autofocus(el: DetailsDialogElement): void {
1111
let autofocusElement = Array.from(el.querySelectorAll<HTMLElement>('[autofocus]')).filter(focusable)[0]

0 commit comments

Comments
 (0)