-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Labels
Help wantedHelp wanted from the communityHelp wanted from the community
Description
Hi there,
we have a subform that contains a FormGroup. In that FormGroup I have a required input field. When I touch it The input field get's red, but the root form does not receive the error.
This is our form declaration:
form = createForm<DeepLinkForm>(this, {
formType: FormType.SUB,
formControls: {
deeplinkIdentifier: new FormControl(),
deeplinkAction: new FormGroup({
actionIdentifier: new FormControl(),
action: new FormControl('', Validators.required),
}),
freeTexts: new FormArray<FormControl<FreeText>>([]),
enabled: new FormControl(),
description: new FormControl(),
information: new FormControl(),
},
});
Notice: The deeplinkAction.action is required.
When I analyze the form with the angular debugger I notice that I get an error in the control:
But the parent formGroupErrors stay null:

I think because of that the root form doesn't get updated. Do you have an idea on what might be the problem?
Metadata
Metadata
Assignees
Labels
Help wantedHelp wanted from the communityHelp wanted from the community