Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 33d9c6f

Browse files
committed
Allow arrow key navigation on disabled elements
1 parent 63a17e1 commit 33d9c6f

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
@@ -149,7 +149,7 @@ function focusFirstItem(details: Element) {
149149
function sibling(details: Element, next: boolean): HTMLElement | null {
150150
const options = Array.from(
151151
details.querySelectorAll<HTMLElement>(
152-
'[role^="menuitem"]:not([hidden]):not([disabled]):not([aria-disabled="true"])'
152+
'[role^="menuitem"]:not([hidden])'
153153
)
154154
)
155155
const selected = document.activeElement

0 commit comments

Comments
 (0)