1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00: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() {
this.analytics.eventTrack.next({ action: 'Toggled Password on Edit' });
this.showPassword = !this.showPassword;
document.getElementById('loginPassword').focus();
}
toggleFieldValue(field: FieldView) {