fix: `Esc` prevent default (browser) action

pull/70/head
Paul Esch-Laurent 2022-08-26 17:33:10 -05:00
parent 1e274a81cc
commit 8f7b91e3df
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ export function FilterList({
case "Escape":
exiting = true;
onSelect(undefined);
e.preventDefault();
break;
case " ":
if (completePrefix && !text) {