1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

PM-187 - Allow autofill to work on web vault two step login page by rendering the password form in a hidden state and preventing the continue button from wiping out the autofilled password (#4844)

This commit is contained in:
Jared Snider
2023-02-27 10:33:06 -05:00
committed by GitHub
parent 4d25afe873
commit fabc15fa45
2 changed files with 78 additions and 64 deletions

View File

@@ -238,7 +238,11 @@ export class LoginComponent extends CaptchaProtectedComponent implements OnInit
toggleValidateEmail(value: boolean) {
this.validatedEmail = value;
this.formGroup.controls.masterPassword.reset();
if (!value) {
// Reset master password only when going from validated to not validated (not you btn press)
// so that autofill can work properly
this.formGroup.controls.masterPassword.reset();
}
}
setFormValues() {