diff --git a/src/app/contact/contact.component.html b/src/app/contact/contact.component.html index d54ac4bfbf1ce8569e4d99e073dff96b24ebf1e3..3f0f49a0d6b10ba0bb3bd0f6b54a6460c488b67e 100644 --- a/src/app/contact/contact.component.html +++ b/src/app/contact/contact.component.html @@ -43,7 +43,7 @@ id="message" label="Message" placeholder="Exemple : J'aimerais avoir de l'aide sur Rés'in." - [value]="contactForm.get('message').value || ''" + [value]="contactForm.get('message').value" (valueChange)="contactForm.get('message').setValue($event)" /> diff --git a/src/app/form/form-view/structure-form/structure-covid-info/structure-covid-info.component.html b/src/app/form/form-view/structure-form/structure-covid-info/structure-covid-info.component.html index 090c68394e8cde087ac1a615a2ff5fd8fb8f722b..94d9e035dec9202344cc9f414c7eb346f5bfcc7e 100644 --- a/src/app/form/form-view/structure-form/structure-covid-info/structure-covid-info.component.html +++ b/src/app/form/form-view/structure-form/structure-covid-info/structure-covid-info.component.html @@ -8,7 +8,7 @@ id="covid" label="" placeholder="Exemple : nous ne sommes joignables que par visio" - [value]="getStructureControl('lockdownActivity').value || ''" + [value]="getStructureControl('lockdownActivity').value" (valueChange)="getStructureControl('lockdownActivity').setValue($event)" /> </form> diff --git a/src/app/form/form-view/structure-form/structure-description/structure-description.component.html b/src/app/form/form-view/structure-form/structure-description/structure-description.component.html index ec2dfc72aa8154b6d1b903b5089be872540030f8..49f0669aaad46f7ebb4d10b64f321d3c26619d48 100644 --- a/src/app/form/form-view/structure-form/structure-description/structure-description.component.html +++ b/src/app/form/form-view/structure-form/structure-description/structure-description.component.html @@ -7,7 +7,7 @@ <app-textarea id="description" label="Description" - [value]="getStructureControl('description').value || ''" + [value]="getStructureControl('description').value" (valueChange)="getStructureControl('description').setValue($event)" /> </form> diff --git a/src/app/form/form-view/structure-form/structure-hours/structure-hours.component.html b/src/app/form/form-view/structure-form/structure-hours/structure-hours.component.html index b4eeeebe4b73ba99bfc1a89113916f8df9c0eb40..2b896e8e7c13417e80c91a2b6817ee4f2587b920 100644 --- a/src/app/form/form-view/structure-form/structure-hours/structure-hours.component.html +++ b/src/app/form/form-view/structure-form/structure-hours/structure-hours.component.html @@ -18,7 +18,7 @@ <app-textarea id="hoursDetails" label="Informations supplémentaires" - [value]="structureForm.get('exceptionalClosures').value || ''" + [value]="structureForm.get('exceptionalClosures').value" (valueChange)="structureForm.get('exceptionalClosures').setValue($event)" /> </form> diff --git a/src/app/form/form-view/structure-form/structure-public-target-other/structure-public-target-other.component.html b/src/app/form/form-view/structure-form/structure-public-target-other/structure-public-target-other.component.html index a85a7354b8c798985861a65bcf9fe86ad519e951..301aebe636c73c1bdc1eb98f05533d609777a298 100644 --- a/src/app/form/form-view/structure-form/structure-public-target-other/structure-public-target-other.component.html +++ b/src/app/form/form-view/structure-form/structure-public-target-other/structure-public-target-other.component.html @@ -6,7 +6,7 @@ <app-textarea id="otherTextarea" label="Autres démarches" - [value]="structureForm.get('otherDescription').value || ''" + [value]="structureForm.get('otherDescription').value" (valueChange)="structureForm.get('otherDescription').setValue($event)" /> </form> diff --git a/src/app/shared/components/textarea/textarea.component.html b/src/app/shared/components/textarea/textarea.component.html index be76d2d7e1e1890579359e852230dfee42799db0..1a62b7fd29e46ae241737e86e218d0267ff05002 100644 --- a/src/app/shared/components/textarea/textarea.component.html +++ b/src/app/shared/components/textarea/textarea.component.html @@ -13,7 +13,7 @@ (input)="onValueChange($event)" ></textarea> - <div class="count">{{ value?.length }} / {{ maxLength }}</div> + <div class="count">{{ value?.length ?? 0 }} / {{ maxLength }}</div> <div *ngIf="status && statusText" class="status" [ngClass]="status"> <img *ngIf="status === 'error'" src="assets/ico/error-rounded.svg" alt="" /> <img *ngIf="status === 'success'" src="assets/ico/success-rounded.svg" alt="" />