1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-04-01 17:57:27 +02: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
No known key found for this signature in database
GPG Key ID: 9DD8DA583B28154A

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);
}