@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.
@@ -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 && !obj.length)
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