FORM SERVICE CHANGE > mark arrays as touched if no array items
This commit is contained in:
parent
8f455a5324
commit
2d1ba944ee
|
@ -32,6 +32,9 @@ export class FormService {
|
|||
this.touchAllFormFields(control);
|
||||
});
|
||||
} else if (formControl instanceof UntypedFormArray) {
|
||||
if(!formControl.controls?.length){
|
||||
formControl.markAsTouched()
|
||||
}
|
||||
formControl.controls.forEach(item => {
|
||||
this.touchAllFormFields(item);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue