1
0

fix: Esc prevent default (browser) action

This commit is contained in:
Paul Esch-Laurent 2022-08-26 17:33:10 -05:00
parent 1e274a81cc
commit 8f7b91e3df

View File

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