Skip to content

Commit 6e0823d

Browse files
authored
Update auth.component.html - autofocus on username (#140)
1 parent 54244cc commit 6e0823d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/auth/auth.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<form class="p-5 jumbotron" #authForm="ngForm" (ngSubmit)="onSubmit(authForm)" *ngIf="!isLoading">
1414
<div class="form-group col-8">
1515
<label for="email">{{'AUTH.EMAIL' | translate}}</label>
16-
<input type="username" id="username" class="form-control" ngModel name="username" required email
16+
<input type="username" id="username" class="form-control" ngModel name="username" required email autofocus
1717
[ngClass]="{'is-invalid' : formFailedSubmit && errorFields.includes('username'), 'is-valid' : formFailedSubmit && !errorFields.includes('username')}">
1818
</div>
1919
<div class="form-group col-8">
@@ -31,4 +31,4 @@
3131
</div>
3232
</form>
3333
</div>
34-
</div>
34+
</div>

0 commit comments

Comments
 (0)