1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-07-07 12:25:46 +02:00

focus pin if using pinLock

This commit is contained in:
Kyle Spearrin 2019-02-13 10:05:58 -05:00
parent 53260a5be8
commit f67fac3eeb

View File

@ -92,7 +92,7 @@ export class LockComponent implements OnInit {
togglePassword() {
this.platformUtilsService.eventTrack('Toggled Master Password on Unlock');
this.showPassword = !this.showPassword;
document.getElementById('masterPassword').focus();
document.getElementById(this.pinLock ? 'pin' : 'masterPassword').focus();
}
private async setKeyAndContinue(key: SymmetricCryptoKey) {