fix(overflow-menu): keyboard navigation should skip disabled items (#1096)

This commit is contained in:
metonym 2022-02-12 15:43:45 -08:00 committed by GitHub
commit c7de897b89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 4 deletions

View file

@ -33,7 +33,7 @@
const { focusedId, add, update, change } = getContext("OverflowMenu");
add({ id, text, primaryFocus });
add({ id, text, primaryFocus, disabled });
afterUpdate(() => {
if (ref && primaryFocus) {