@esfaenza/forms-and-validations 11.2.78 → 11.2.79
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/esfaenza-forms-and-validations.umd.js +6 -2
- package/bundles/esfaenza-forms-and-validations.umd.js.map +1 -1
- package/esm2015/lib/forms/form-select/form-select.component.js +6 -3
- package/fesm2015/esfaenza-forms-and-validations.js +5 -2
- package/fesm2015/esfaenza-forms-and-validations.js.map +1 -1
- package/package.json +1 -1
|
@@ -3208,7 +3208,9 @@
|
|
|
3208
3208
|
this.detatchPreviousAndRetatchNext(function (afterStuff) {
|
|
3209
3209
|
_this.BoundSource = null;
|
|
3210
3210
|
setTimeout(function () {
|
|
3211
|
+
var _a;
|
|
3211
3212
|
_this.tryBindSourceDisplay();
|
|
3213
|
+
_this.EvaluatedModel = _this.BoundSource && _this.BoundSource.length > 0 ? (_a = _this.BoundSource.find(function (t) { return t.id == _this.Model; })) === null || _a === void 0 ? void 0 : _a.description : "";
|
|
3212
3214
|
_this.cdr.detectChanges();
|
|
3213
3215
|
setTimeout(function () { afterStuff(); });
|
|
3214
3216
|
});
|
|
@@ -3216,7 +3218,9 @@
|
|
|
3216
3218
|
}
|
|
3217
3219
|
else
|
|
3218
3220
|
this.detatchPreviousAndRetatchNext(function (afterStuff) {
|
|
3221
|
+
var _a;
|
|
3219
3222
|
_this.tryBindSourceDisplay();
|
|
3223
|
+
_this.EvaluatedModel = _this.BoundSource && _this.BoundSource.length > 0 ? (_a = _this.BoundSource.find(function (t) { return t.id == _this.Model; })) === null || _a === void 0 ? void 0 : _a.description : "";
|
|
3220
3224
|
_this.cdr.detectChanges();
|
|
3221
3225
|
setTimeout(function () { afterStuff(); });
|
|
3222
3226
|
});
|
|
@@ -3244,9 +3248,9 @@
|
|
|
3244
3248
|
};
|
|
3245
3249
|
/** @ignore */
|
|
3246
3250
|
FormSelectComponent.prototype.writeValue = function (obj) {
|
|
3251
|
+
var _this = this;
|
|
3247
3252
|
var _a;
|
|
3248
|
-
|
|
3249
|
-
this.EvaluatedModel = (_a = this.BoundSource.find(function (t) { return t.id == obj; })) === null || _a === void 0 ? void 0 : _a.description;
|
|
3253
|
+
this.EvaluatedModel = this.BoundSource && this.BoundSource.length > 0 ? (_a = this.BoundSource.find(function (t) { return t.id == _this.Model; })) === null || _a === void 0 ? void 0 : _a.description : "";
|
|
3250
3254
|
_super.prototype.writeValue.call(this, obj);
|
|
3251
3255
|
};
|
|
3252
3256
|
/** @ignore */
|