From c11957b2186be32b4e2aa6a53b55effbc95ef58e Mon Sep 17 00:00:00 2001 From: Itai Smith Date: Fri, 20 Dec 2024 13:31:12 -0800 Subject: [PATCH] Clear search on close --- docs/docs.trychroma.com/components/header/search-docs.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/docs.trychroma.com/components/header/search-docs.tsx b/docs/docs.trychroma.com/components/header/search-docs.tsx index 527e675d282..0234b9f6e91 100644 --- a/docs/docs.trychroma.com/components/header/search-docs.tsx +++ b/docs/docs.trychroma.com/components/header/search-docs.tsx @@ -57,7 +57,13 @@ const SearchDocs: React.FC = () => { }, [query]); return ( - + { + if (!open) { + setQuery(""); + } + }} + >