@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.
- package/esm2020/src/app/core/form/form.utils.mjs +1 -1
- package/esm2020/src/app/shared/forms.mjs +7 -2
- package/fesm2015/sumaris-net.ngx-components.mjs +6 -1
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +6 -1
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +2 -0
- package/src/app/shared/forms.d.ts +1 -0
|
@@ -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
|
-
|
|
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) {
|