From dcd52fde41187e9cdfc3fe3a07dee949302cd5c6 Mon Sep 17 00:00:00 2001 From: Florian Glombik Date: Wed, 6 Nov 2024 23:12:17 +0100 Subject: [PATCH] Fix check for invalid --- .../app/shared/date-time-picker/date-time-picker.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/app/shared/date-time-picker/date-time-picker.component.html b/src/main/webapp/app/shared/date-time-picker/date-time-picker.component.html index be3b713e9361..691f2ef0b5af 100644 --- a/src/main/webapp/app/shared/date-time-picker/date-time-picker.component.html +++ b/src/main/webapp/app/shared/date-time-picker/date-time-picker.component.html @@ -19,7 +19,7 @@ #dateInput="ngModel" class="form-control position-relative ps-5" id="date-input-field" - [ngClass]="{ 'is-invalid': isValid(), 'border-warning': warning() }" + [ngClass]="{ 'is-invalid': !isValid(), 'border-warning': warning() }" [class.ng-invalid]="!isValid()" [ngModel]="value" [disabled]="disabled()"