Skip to content

Commit ca48f13

Browse files
committed
feat: auto focus input
1 parent bd33180 commit ca48f13

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default function App() {
2020
<button onClick={() => dialogRef.current?.close()}>X</button>
2121
</div>
2222
<input
23+
autoFocus
2324
placeholder='搜索评论'
2425
onKeyDown={(e) => {
2526
if (e.key === 'Enter' && promiseRef.current) {

0 commit comments

Comments
 (0)