Skip to content

Commit 4c46797

Browse files
committed
fix: search input
1 parent 6149814 commit 4c46797

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/templates/DocSearchTemplate.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@ export default function DocSearchTemplate({
226226
type: docType,
227227
version: realVersionMemo || "stable",
228228
}}
229-
onSubmit={(query) => execSearch(query, docType, docVersion)}
229+
onSubmit={(query) => {
230+
execSearch(query, docType, docVersion);
231+
setDocQuery(query);
232+
}}
230233
/>
231234
<Box
232235
sx={{

0 commit comments

Comments
 (0)