mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3510] Search facets date-range goes invalid when empty - fix (#3741)
This commit is contained in:
committed by
Eugenio Romano
parent
931181dee0
commit
6ddf028d93
@@ -22,7 +22,7 @@ export class LiveErrorStateMatcher implements ErrorStateMatcher {
|
||||
|
||||
isErrorState(control: FormControl | null, form: FormGroupDirective | NgForm | null): boolean {
|
||||
const isSubmitted = form && form.submitted;
|
||||
return !!(control && control.invalid && (control.dirty || control.touched || isSubmitted));
|
||||
return !!(control && control.invalid && (control.dirty || control.touched || (!control.pristine && isSubmitted)));
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user