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

adjust focus on fields for browser apps

This commit is contained in:
Kyle Spearrin 2018-07-13 09:28:45 -04:00
parent 0217fdf7c1
commit 747cd63733

View File

@ -13,6 +13,8 @@ import { AuthService } from '../../abstractions/auth.service';
import { I18nService } from '../../abstractions/i18n.service';
import { StorageService } from '../../abstractions/storage.service';
import { Utils } from 'jslib/misc/utils';
const Keys = {
rememberedEmail: 'rememberedEmail',
rememberEmail: 'rememberEmail',
@ -45,6 +47,9 @@ export class LoginComponent implements OnInit {
if (this.rememberEmail == null) {
this.rememberEmail = true;
}
if (Utils.isBrowser) {
document.getElementById(this.email == null || this.email === '' ? 'email' : 'masterPassword').focus();
}
}
async submit() {