Skip to content

Commit bd444d3

Browse files
committed
Fix lint
1 parent 40944ea commit bd444d3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ function focusFirstItem(details: Element) {
147147
}
148148

149149
function sibling(details: Element, next: boolean): HTMLElement | null {
150-
const options = Array.from(
151-
details.querySelectorAll<HTMLElement>('[role^="menuitem"]:not([hidden])')
152-
)
150+
const options = Array.from(details.querySelectorAll<HTMLElement>('[role^="menuitem"]:not([hidden])'))
153151
const selected = document.activeElement
154152
const index = selected instanceof HTMLElement ? options.indexOf(selected) : -1
155153
const found = next ? options[index + 1] : options[index - 1]

0 commit comments

Comments
 (0)