fix(context-menu): prevent default keydown behavior

This commit is contained in:
Eric Y Liu 2021-03-20 06:36:02 -07:00
commit 49b2ed4b6e

View file

@ -112,7 +112,7 @@
} }
}}" }}"
on:keydown on:keydown
on:keydown="{(e) => { on:keydown|preventDefault="{(e) => {
if ($hasPopup) return; if ($hasPopup) return;
if (e.key === 'ArrowDown') { if (e.key === 'ArrowDown') {