-
Notifications
You must be signed in to change notification settings - Fork 32
FormGroup all elements are of the same type #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
It's becoming hard to follow, can you please create a small repro on stackblitz or locally and push on github to explain what you mean? |
clicking on the markDirty button would prefer to touch all fields on the form |
Thanks for the repro @elvispdosreis. Do you mean that in your example when clicking on the Or are you only referring to |
As you can see here: https://stackoverflow.com/questions/54943261/reactive-forms-mark-dirty-all-controls-in-form-group this is not because of Now if you were referring to the |
from what I checked, so I'm splitting a form, I understand that it must be a FormGroup or FormArray, today the subform and created with a FormControl, which refers to only one field |
@elvispdosreis I'm unsure how I can help anymore. Is there anything unclear for you that you believe is on ngx-sub-form side? If so please give me more info to help you out, if not please close this issue :) |
I'm going to go ahead and close this issue. Please reopen if you feel it's needed 👍 |
I need to touch all the fields in the form, to mark them as dirty, but I can't interact with the FormGroup, because all the elements of the forms are FormControl, there is no FormGroup and FormArray in the ngx-sub-form
Form
SubForm
<app-address [formControlName]="formControlNames.address"></app-address>
Function markAsDirty
The text was updated successfully, but these errors were encountered: