fix(context-menu): correctly tab in/out of nested menus

This commit is contained in:
Eric Y Liu 2021-03-19 16:54:19 -07:00
commit 1101fe3bff
2 changed files with 25 additions and 2 deletions

View file

@ -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') {