Skip to content

Commit e2bd942

Browse files
ILoveScratch2xrgzs
andauthored
feat(password): add auto focus on password (#159)
* feat: add auto focus on password * refactor(Password): use native autofocus prop --------- Co-authored-by: MadDogOwner <[email protected]>
1 parent 93c6e00 commit e2bd942

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/home/Password.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const Password = (props: PasswordProps) => {
3434
>
3535
<Heading>{props.title}</Heading>
3636
<Input
37+
autofocus={true}
3738
type="password"
3839
value={props.password()}
3940
background={useColorModeValue("$neutral3", "$neutral2")()}

0 commit comments

Comments
 (0)