move focus to base

This commit is contained in:
Kyle Spearrin 2018-07-13 09:29:22 -04:00
parent e5733b83a0
commit fe6a40f7d0
3 changed files with 3 additions and 4 deletions

2
jslib

@ -1 +1 @@
Subproject commit 0217fdf7c1f402974e9ed80e216d84dffb88a696
Subproject commit 747cd6373305042640f5f0d861eda0fdeb22cab7

View File

@ -7,13 +7,13 @@
<div class="card-body">
<div class="form-group">
<label for="email">{{'emailAddress' | i18n}}</label>
<input id="email" class="form-control" type="text" name="Email" [(ngModel)]="email" required>
<input id="email" class="form-control" type="text" name="Email" [(ngModel)]="email" required inputmode="email" appInputVerbatim="false">
</div>
<div class="form-group">
<label for="masterPassword">{{'masterPass' | i18n}}</label>
<div class="d-flex">
<input id="masterPassword" type="{{showPassword ? 'text' : 'password'}}" name="MasterPassword" class="text-monospace form-control"
[(ngModel)]="masterPassword" required>
[(ngModel)]="masterPassword" required appInputVerbatim>
<button type="button" class="ml-1 btn btn-link" appBlurClick title="{{'toggleVisibility' | i18n}}" (click)="togglePassword()">
<i class="fa fa-lg" [ngClass]="{'fa-eye': !showPassword, 'fa-eye-slash': showPassword}"></i>
</button>

View File

@ -32,7 +32,6 @@ export class LoginComponent extends BaseLoginComponent {
this.email = qParams.email;
}
await super.ngOnInit();
document.getElementById(this.email == null || this.email === '' ? 'email' : 'masterPassword').focus();
});
}
}