Merge pull request #363 from lujakob/add-search-field-focus

feat: add search page field autofocus
This commit is contained in:
Kieran 2023-02-27 11:54:06 +00:00 committed by GitHub
commit 688c5cf4f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ const SearchPage = () => {
placeholder={formatMessage(messages.SearchPlaceholder)}
value={search}
onChange={e => setSearch(e.target.value)}
autofocus
/>
</div>
{keyword && allUsers?.slice(0, 3).map(u => <ProfilePreview actions={<></>} className="card" pubkey={u.pubkey} />)}