Skip to content

Commit 18a10ae

Browse files
committed
Auto-focus search bar on page load
Removes the extra click needed to start typing when landing on the page.
1 parent 1138afd commit 18a10ae

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/src/components/SearchBar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export function SearchBar({ shows, onSelectShow, isLoading }: SearchBarProps) {
4444
value={query}
4545
disabled={isLoading}
4646
autoComplete="off"
47+
autoFocus
4748
/>
4849

4950
{filteredShows.length > 0 && query !== '' && (

0 commit comments

Comments
 (0)