From 75084782b767f51f6158ada1984cf339c6302960 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 20 Jun 2022 16:42:21 +0200 Subject: Handle input error in custom input text --- client/src/app/shared/shared-forms/input-text.component.html | 3 +++ 1 file changed, 3 insertions(+) (limited to 'client/src/app/shared/shared-forms/input-text.component.html') diff --git a/client/src/app/shared/shared-forms/input-text.component.html b/client/src/app/shared/shared-forms/input-text.component.html index f890c4f02..abb53a085 100644 --- a/client/src/app/shared/shared-forms/input-text.component.html +++ b/client/src/app/shared/shared-forms/input-text.component.html @@ -3,6 +3,7 @@ [id]="inputId" [autocomplete]="autocomplete" [value]="value" [placeholder]="placeholder" [tabindex]="tabindex" [(ngModel)]="value" (ngModelChange)="update()" [readonly]="readonly" #input (click)="input.select()" (input)="update()" (change)="update()" [type]="inputType" class="form-control" + [ngClass]="{ 'input-error': formError }" /> + +
{{ formError }}
-- cgit v1.2.3