@sumaris-net/ngx-components 1.23.36 → 1.23.37
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/bundles/sumaris-net.ngx-components.umd.js +3 -2
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/form.utils.js +4 -3
- package/fesm2015/sumaris-net.ngx-components.js +3 -2
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +0 -2
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -4596,9 +4596,10 @@
|
|
|
4596
4596
|
FormArrayHelper.prototype.setValue = function (values, opts) {
|
|
4597
4597
|
var _this = this;
|
|
4598
4598
|
this.resize(0);
|
|
4599
|
+
var emitEvent = (!opts || (opts === null || opts === void 0 ? void 0 : opts.emitEvent) !== false);
|
|
4599
4600
|
(values || []).forEach(function (value, i) {
|
|
4600
|
-
var
|
|
4601
|
-
_this.add(value, { emitEvent:
|
|
4601
|
+
var last = (i === values.length - 1);
|
|
4602
|
+
_this.add(value, { emitEvent: last && emitEvent });
|
|
4602
4603
|
});
|
|
4603
4604
|
};
|
|
4604
4605
|
/**
|