From 8f7b91e3df1cdf54d9d925152394839af25e43ef Mon Sep 17 00:00:00 2001 From: Paul Esch-Laurent Date: Fri, 26 Aug 2022 17:33:10 -0500 Subject: [PATCH] fix: `Esc` prevent default (browser) action --- packages/web/components/filter.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/web/components/filter.tsx b/packages/web/components/filter.tsx index d94d8d3..a188e41 100644 --- a/packages/web/components/filter.tsx +++ b/packages/web/components/filter.tsx @@ -173,6 +173,7 @@ export function FilterList({ case "Escape": exiting = true; onSelect(undefined); + e.preventDefault(); break; case " ": if (completePrefix && !text) {