Releases: cloudnc/ngx-sub-form
Releases · cloudnc/ngx-sub-form
v4.0.0
4.0.0 (2019-12-19)
Bug Fixes
- lib: remap and root form components don't have the default values passed (only a type issue) (b58e983)
BREAKING CHANGES
- lib: Adding a parameter to the
transformToFormGroupmethod could be a breaking change if you're callingsuper.transformToFormGroup. As this method is a callback for ngx-sub-form, chances are: You're not calling it and this change will probably NOT affect you. The upgrade should go smoothly. If it does affect you, it'll be caught at build time so it should be easy to find out.
v3.0.6
3.0.6 (2019-12-18)
Bug Fixes
- lib: disabled attribute is not disabling the form if initially set to false (c858bf0), closes cloudnc/ngx-sub-form#84
v3.0.5
3.0.5 (2019-12-18)
Bug Fixes
- lib: disabled attribute not working (consistently) (79d0e89), closes cloudnc/ngx-sub-form#84
v3.0.4
v3.0.3
v3.0.2
v3.0.1
3.0.1 (2019-11-07)
This release should be 3.0.0 but an issue happened and the 3.0.0 couldn't be published.
Here are the notes for 3.0.0 (and the empty 3.0.1):
Features
- lib: possibility to define default values and reset a form using those + possibility to set a
formControlto null - lib: handle default values with
transformToFormGroup
BREAKING CHANGES
transformToFormGroup can now receive a null value.
It also has a new param "defaultValues" which is a Partial of the form interface.
This gives finer control on the behavior when a null value is passed to a sub form and let you implement what you want. Indeed in some cases you may still display a sub form even if it's value is null, in that case, you then have the choice to reset the formGroup to default values, or set all of them to null. From transformToFormGroup, if you return null all the properties of the form will be reset to null, otherwise return an object representing all the values.
v2.11.5
v2.11.4
2.11.4 (2019-09-05)
Bug Fixes
- lib: emitted value should always reflect the latest state of the form (b47018c), closes cloudnc/ngx-sub-form#98
v2.11.3
2.11.3 (2019-08-13)
Bug Fixes
- lib: data input decorator has a type error when used with an array (b424cdf), closes cloudnc/ngx-sub-form#83