We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33d9c6f commit 40944eaCopy full SHA for 40944ea
src/index.ts
@@ -148,9 +148,7 @@ function focusFirstItem(details: Element) {
148
149
function sibling(details: Element, next: boolean): HTMLElement | null {
150
const options = Array.from(
151
- details.querySelectorAll<HTMLElement>(
152
- '[role^="menuitem"]:not([hidden])'
153
- )
+ details.querySelectorAll<HTMLElement>('[role^="menuitem"]:not([hidden])')
154
)
155
const selected = document.activeElement
156
const index = selected instanceof HTMLElement ? options.indexOf(selected) : -1
0 commit comments