Skip to content

Commit

Permalink
Add autoFocus to font search input.
Browse files Browse the repository at this point in the history
  • Loading branch information
cweijan committed Dec 13, 2024
1 parent 22fac29 commit 282ed00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/view/fontViewer/FontViewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default function FontViewer() {
<Flex style={{ width: '280px', background: '#f0f2f5', flexShrink: 0, paddingTop: '20px', flexDirection: 'column', justifyContent: 'space-between' }}>
<div style={{ padding: '0 10px' }}>
<Card title="Search" style={{ marginBottom: 15 }}>
<Input placeholder="Name" size="middle" allowClear onChange={e => setSearch(e.target.value)} />
<Input placeholder="Name" size="middle" allowClear autoFocus onChange={e => setSearch(e.target.value)} />
</Card>
<Card title="Font" style={{ marginBottom: 15 }}>
<div className='info-card'>
Expand Down

0 comments on commit 282ed00

Please sign in to comment.