@sumaris-net/ngx-components 2.6.4-rc8 → 2.6.4-rc9

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.
@@ -4324,7 +4324,12 @@ function addValueInArray(arrayControl, createControl, equals, isEmpty, value, op
4324
4324
  control.disable({ emitEvent: false });
4325
4325
  else if (!disabled && control.disabled)
4326
4326
  control.enable({ emitEvent: false });
4327
- arrayControl.push(control, options);
4327
+ if (options?.insertAt) {
4328
+ arrayControl.insert(options.insertAt, control, options);
4329
+ }
4330
+ else {
4331
+ arrayControl.push(control, options);
4332
+ }
4328
4333
  hasChanged = true;
4329
4334
  }
4330
4335
  if (hasChanged) {