Skip to content

Commit 2ac09b9

Browse files
author
Alex Patterson
authored
Merge pull request CodingCatDev#208 from CodingCatDev/dev
set autofocus
2 parents a1f5189 + 6f562b0 commit 2ac09b9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

frontend/main/src/components/algolia/customSearchBox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default connectSearchBox(({ refine, ...rest }) => (
1818
<input
1919
type="search"
2020
name="search"
21+
autoFocus={true}
2122
placeholder="Search for anything fun!"
2223
className="w-5/6 leading-tight border rounded shadow-none appearance-none text-basics-900 dark:text-basics-900 focus:outline-none focus:ring-purple-900"
2324
aria-label="Search"

0 commit comments

Comments
 (0)