mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
fix(context-menu): correctly tab in/out of nested menus
This commit is contained in:
parent
7f8f910b1c
commit
1101fe3bff
2 changed files with 25 additions and 2 deletions
|
@ -113,6 +113,7 @@
|
|||
}}"
|
||||
on:keydown
|
||||
on:keydown="{(e) => {
|
||||
if ($hasPopup) return;
|
||||
if (e.key === 'ArrowDown') {
|
||||
if (focusIndex < options.length - 1) focusIndex++;
|
||||
} else if (e.key === 'ArrowUp') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue