Skip to content

Commit

Permalink
Clear search on close
Browse files Browse the repository at this point in the history
  • Loading branch information
itaismith committed Dec 20, 2024
1 parent 133032e commit c11957b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/docs.trychroma.com/components/header/search-docs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ const SearchDocs: React.FC = () => {
}, [query]);

return (
<Dialog>
<Dialog
onOpenChange={(open) => {
if (!open) {
setQuery("");
}
}}
>
<DialogTrigger asChild>
<UIButton className="lex items-center gap-2 p-[0.35rem] px-3 text-xs">
<MagnifyingGlassIcon className="w-4 h-4" />
Expand Down

0 comments on commit c11957b

Please sign in to comment.