@esfaenza/forms-and-validations 15.2.23 → 15.2.24
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/lib/forms/form-multiselect/form-multiselect.component.mjs +2 -2
- package/fesm2015/esfaenza-forms-and-validations.mjs +1 -1
- package/fesm2015/esfaenza-forms-and-validations.mjs.map +1 -1
- package/fesm2020/esfaenza-forms-and-validations.mjs +1 -1
- package/fesm2020/esfaenza-forms-and-validations.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3484,7 +3484,7 @@ class FormMultiSelectComponent extends BaseFormControl {
|
|
|
3484
3484
|
writeValue(obj) {
|
|
3485
3485
|
this.TmpModel = obj;
|
|
3486
3486
|
let toPass = [];
|
|
3487
|
-
if (this.UseCommaSeparatedList && obj &&
|
|
3487
|
+
if (this.UseCommaSeparatedList && obj && (typeof obj === 'string' || obj instanceof String))
|
|
3488
3488
|
obj = obj.split(',');
|
|
3489
3489
|
//Qui arrivano solo gli id, o {id: x, description: y} in caso sono in UseKeyValues,
|
|
3490
3490
|
//devo tirare fuori gli oggetti relativi e piazzarli come lista per il Model
|