mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Auto focus cursor on search input when open search page
This commit is contained in:
parent
30304ccc56
commit
7a8a9fc807
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ export default function Search() {
|
|||
<div className='flex justify-between items-center border-2 border-muted p-2 gap-4 rounded-lg'>
|
||||
<MagnifyingGlass className='inline m-2 h-4 w-4' />
|
||||
<Input
|
||||
autoFocus
|
||||
autoFocus={true}
|
||||
className='border-none'
|
||||
onChange={(e) => setSearchQuery(e.currentTarget.value)}
|
||||
onKeyDown={(e) => e.key === 'Enter' && search()}
|
||||
|
|
Loading…
Add table
Reference in a new issue