mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
fix(overflow-menu): keyboard navigation should skip disabled items (#1096)
This commit is contained in:
parent
16790daaa9
commit
c7de897b89
2 changed files with 17 additions and 4 deletions
|
@ -33,7 +33,7 @@
|
|||
|
||||
const { focusedId, add, update, change } = getContext("OverflowMenu");
|
||||
|
||||
add({ id, text, primaryFocus });
|
||||
add({ id, text, primaryFocus, disabled });
|
||||
|
||||
afterUpdate(() => {
|
||||
if (ref && primaryFocus) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue