From ca55666d1d7059a69220724a9f0d01cb7f75f2a4 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sat, 1 Oct 2022 17:53:38 -0500 Subject: [PATCH] Only close dialogue after selection. --- web/components/Search.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/Search.tsx b/web/components/Search.tsx index 5ae87fd4..d24d1ec9 100644 --- a/web/components/Search.tsx +++ b/web/components/Search.tsx @@ -112,8 +112,8 @@ const Search: React.FunctionComponent = (props) => { if (value.item.kind === 'lua') { router.push(`/lua#${value.item.name}`, undefined, { scroll: false }) } + setIsOpen(false) } - setIsOpen(false) } const closeModal = () => {