1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

Added focus to the email and master password fields (#3934)

This commit is contained in:
Gbubemi Smith 2022-10-31 17:37:42 -04:00 committed by GitHub
parent b637c2f172
commit 05fe75d96f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -25,6 +25,7 @@
bitInput
type="email"
formControlName="email"
appAutofocus
(keyup.enter)="validateEmail()"
/>
</bit-form-field>
@ -79,6 +80,7 @@
bitInput
type="{{ showPassword ? 'text' : 'password' }}"
formControlName="masterPassword"
appAutofocus
/>
<button type="button" bitSuffix bitButton (click)="togglePassword()">
<i

View File

@ -275,9 +275,4 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
this.showLoginWithDevice = false;
}
}
protected focusInput() {
const email = this.loggedEmail;
document.getElementById(email == null || email === "" ? "email" : "masterPassword").focus();
}
}