@sumaris-net/ngx-components 2.3.7 → 2.3.8-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4659,6 +4659,13 @@ class AppFormArray extends UntypedFormArray {
4659
4659
  }
4660
4660
  }
4661
4661
  patchValue(values, options) {
4662
+ // See official Angular 'FormGroup.patchValue()' :
4663
+ // "Even though the `value` argument type doesn't allow `null` and `undefined` values, the
4664
+ // `patchValue` can be called recursively and inner data structures might have these values, so
4665
+ // we just ignore such cases when a field containing FormGroup instance receives `null` or
4666
+ // `undefined` as a value."
4667
+ if (values == null /* both `null` and `undefined` */)
4668
+ return;
4662
4669
  if (this.options.allowReuseControls === false) {
4663
4670
  const disabled = this.disabled;
4664
4671
  // Clean all