diff --git a/src/app/modules/forms/ix-forms/validators/password-validation/password-validation.ts b/src/app/modules/forms/ix-forms/validators/password-validation/password-validation.ts index f9ad068c150..0ee72197772 100644 --- a/src/app/modules/forms/ix-forms/validators/password-validation/password-validation.ts +++ b/src/app/modules/forms/ix-forms/validators/password-validation/password-validation.ts @@ -37,7 +37,9 @@ export function matchOthersFgValidator( if (isEmpty(prevErrors)) { prevErrors = null; } - subjectControl.setErrors(prevErrors); + if (fg.get(controlName).touched) { + subjectControl.setErrors(prevErrors); + } return null; }; } @@ -78,7 +80,9 @@ export function doesNotEqualFgValidator( if (isEmpty(prevErrors)) { prevErrors = null; } - subjectControl.setErrors(prevErrors); + if (fg.get(controlName).touched) { + subjectControl.setErrors(prevErrors); + } return null; }; }