Skip to content

Commit

Permalink
Automatically focus on 1st input (username), on load of LoginForm - v2
Browse files Browse the repository at this point in the history
  • Loading branch information
afilp authored Nov 13, 2018
1 parent 48c8da3 commit 0195a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/src/auth/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const LoginForm = ({ classes, isLoading, handleSubmit, translate }) => (
component={renderInput}
label={translate('ra.auth.username')}
disabled={isLoading}
autoFocus
/>
</div>
<div className={classes.input}>
Expand All @@ -59,7 +60,6 @@ const LoginForm = ({ classes, isLoading, handleSubmit, translate }) => (
label={translate('ra.auth.password')}
type="password"
disabled={isLoading}
autoFocus
/>
</div>
</div>
Expand Down

0 comments on commit 0195a48

Please sign in to comment.