1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Add comment to explain call to setLoginEmail.

This commit is contained in:
Alec Rippberger
2024-10-02 07:41:18 -05:00
parent bdc988cc12
commit f8f8bb5386

View File

@@ -357,6 +357,7 @@ export class LoginComponent implements OnInit, OnDestroy {
onEmailBlur(event: Event) {
const emailInput = event.target as HTMLInputElement;
this.formGroup.controls.email.setValue(emailInput.value);
// Call setLoginEmail so that the email is pre-populated when navigating to the "enter password" screen.
this.loginEmailService.setLoginEmail(this.formGroup.value.email);
}