@rxap/forms 13.0.2 → 13.0.4

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.
@@ -241,6 +241,13 @@ class RxapFormArray extends FormArray {
241
241
  // `undefined` as a value.
242
242
  if (value == null /* both `null` and `undefined` */)
243
243
  return;
244
+ if (options?.strict) {
245
+ if (this.length > value.length) {
246
+ for (let index = this.length - 1; index >= value.length; index--) {
247
+ this.removeAt(index);
248
+ }
249
+ }
250
+ }
244
251
  value.forEach((newValue, index) => {
245
252
  if (this.at(index)) {
246
253
  this.at(index).patchValue(newValue, { ...(options ?? {}), onlySelf: true });