1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-16 02:27:00 +02: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) {