1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-17 15:37:57 +01:00

toggle password focus on add/edit

This commit is contained in:
Kyle Spearrin 2018-02-24 13:51:12 -05:00
parent 8e519f5518
commit fa0c0fa24d

View File

@ -209,6 +209,7 @@ export class AddEditComponent implements OnChanges {
togglePassword() { togglePassword() {
this.analytics.eventTrack.next({ action: 'Toggled Password on Edit' }); this.analytics.eventTrack.next({ action: 'Toggled Password on Edit' });
this.showPassword = !this.showPassword; this.showPassword = !this.showPassword;
document.getElementById('loginPassword').focus();
} }
toggleFieldValue(field: FieldView) { toggleFieldValue(field: FieldView) {