diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index d919f05..2e9442c 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -157,6 +157,8 @@ const Layout = ({ footer, children, disableSidebar, font }: any) => { if (misc.searchQuery.trim()) { history.push(`/search?query=${misc.searchQuery}`); } + dispatch(setSearchQuery('')); + setOpenSearch(false); }} onKeyDown={(e: KeyboardEvent) => { if (e.key === 'Escape') {