You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a scenario where I'm using ngx-sub-form, and my parent formGroup is being reset. The control that is using ngx-sub-form is being reset with a value of null, but I am not seeing toFormGroup() executed. A reset of any other value is executing this function. Is there something I'm missing here?
I did come across some info for default values, but I'm not sure I follow this.
Now you simply define your default values within the formControls function on each of the form controls as you'd expect. Behind the scenes, when the component is created for the first time we make a deep copy of those default values and apply them automatically if the root form or the sub form is being updated upstream with null or undefined.
Is this a bug or intentional?
The text was updated successfully, but these errors were encountered:
conner-fallone
changed the title
Resetting formControl with null doesn't run toFormGroup
Resetting formControl with null doesn't run toFormGroup()
Mar 29, 2022
I have a scenario where I'm using ngx-sub-form, and my parent formGroup is being reset. The control that is using ngx-sub-form is being reset with a value of null, but I am not seeing toFormGroup() executed. A reset of any other value is executing this function. Is there something I'm missing here?
I did come across some info for default values, but I'm not sure I follow this.
Is this a bug or intentional?
The text was updated successfully, but these errors were encountered: