fix(context-menu): obtain radio id from node directly

This commit is contained in:
Eric Y Liu 2021-03-20 06:01:17 -07:00
commit 09e65d78c3
2 changed files with 29 additions and 45 deletions

View file

@ -114,6 +114,7 @@
on:keydown
on:keydown="{(e) => {
if ($hasPopup) return;
if (e.key === 'ArrowDown') {
if (focusIndex < options.length - 1) focusIndex++;
} else if (e.key === 'ArrowUp') {