From 06d8eceedefa7f1711bf196670d65d7bbda8dc4f Mon Sep 17 00:00:00 2001 From: tungulin Date: Wed, 13 May 2026 16:04:58 +0300 Subject: [PATCH] =?UTF-8?q?fix/newdocs-search=20=F0=9F=A7=8A=20fix:=20wip?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layout/FunctionHeader/components/Search/Search.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/newdocs/app/(docs)/_components/layout/FunctionHeader/components/Search/Search.tsx b/packages/newdocs/app/(docs)/_components/layout/FunctionHeader/components/Search/Search.tsx index b4f8e05a..b7651fa7 100644 --- a/packages/newdocs/app/(docs)/_components/layout/FunctionHeader/components/Search/Search.tsx +++ b/packages/newdocs/app/(docs)/_components/layout/FunctionHeader/components/Search/Search.tsx @@ -51,7 +51,7 @@ export const Search = (props: Props) => { 'dark:bg-card text-muted-foreground hover:text-foreground hover:bg-muted/70 border-input bg-muted/40 relative h-8 justify-start rounded-lg border px-2.5 font-normal shadow-none md:w-42 lg:w-62' )} variant='outline' - onClick={dialog.toggle} + onClick={() => dialog.toggle()} > Search docs... @@ -96,7 +96,9 @@ export const Search = (props: Props) => {
{!isFunction && } {isFunction && } - {item.name!.toString()} + dialog.close()}> + {item.name!.toString()} +
))}