From ef7a64c9ebe1421a8b5c4a25f4bbaa99b51a2a56 Mon Sep 17 00:00:00 2001 From: Anandharajan <79890154+Ananadharajan@users.noreply.github.com> Date: Fri, 21 Feb 2025 22:53:18 +0530 Subject: [PATCH] fix login form component with password toggle (#2263) --- .../login-form/login-form.component.html | 6 ++- .../login/login-form/login-form.component.ts | 43 ++++++++++++++++--- 2 files changed, 40 insertions(+), 9 deletions(-) diff --git a/src/app/login/login-form/login-form.component.html b/src/app/login/login-form/login-form.component.html index 9865a823e..5d057e56a 100644 --- a/src/app/login/login-form/login-form.component.html +++ b/src/app/login/login-form/login-form.component.html @@ -21,8 +21,8 @@ *ngIf="loginForm.controls.password.value && !loading" matSuffix mat-icon-button - (mousedown)="passwordInputType = 'text'" - (mouseup)="passwordInputType = 'password'" + (mousedown)="togglePasswordVisibility()" + (mouseup)="togglePasswordVisibility()" > @@ -36,6 +36,8 @@ 'labels.inputs.Remember me' | translate }} + +