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:
parent
0217fdf7c1
commit
747cd63733
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user