1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

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

Submodule jslib updated: 0217fdf7c1...747cd63733

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();
});
}
}