From 95ffed17fd618e963fa037e80d2f2e59c7c0748f Mon Sep 17 00:00:00 2001
From: Hugo SUBTIL <ext.sopra.husubtil@grandlyon.com>
Date: Thu, 20 Jan 2022 12:19:12 +0100
Subject: [PATCH] fix: set missing validation form on phone input

---
 src/app/form/structure-form/form.component.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/app/form/structure-form/form.component.html b/src/app/form/structure-form/form.component.html
index a8ff1816b..8c2aee131 100644
--- a/src/app/form/structure-form/form.component.html
+++ b/src/app/form/structure-form/form.component.html
@@ -179,7 +179,7 @@
               type="text"
               formControlName="phone"
               class="form-input phone"
-              (input)="utils.modifyPhoneInput(accountForm, 'phone', $event.target.value)"
+              (input)="utils.modifyPhoneInput(accountForm, 'phone', $event.target.value); setValidationsForm()"
             />
             <app-svg-icon
               *ngIf="accountForm.get('phone').valid"
@@ -483,7 +483,7 @@
               type="text"
               formControlName="contactPhone"
               class="form-input"
-              (input)="utils.modifyPhoneInput(structureForm, 'contactPhone', $event.target.value)"
+              (input)="utils.modifyPhoneInput(structureForm, 'contactPhone', $event.target.value); setValidationsForm()"
             />
             <app-svg-icon
               *ngIf="getStructureControl('contactPhone').valid"
-- 
GitLab