Skip to content

Commit 3e51810

Browse files
committed
always close search results
1 parent fbf862b commit 3e51810

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/search/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ export function Search({path, autoFocus, searchPlatforms = [], showChatBot}: Pro
247247
);
248248

249249
// close the search results and scroll to the heading if it exists
250+
setInputFocus(false);
250251
if (foundHeading) {
251-
setInputFocus(false);
252252
foundHeading.scrollIntoView({
253253
behavior: 'smooth',
254254
});

0 commit comments

Comments
 (0)