@esfaenza/forms-and-validations 15.2.39 → 15.2.40

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.
@@ -3544,14 +3544,14 @@ class FormMultiSelectComponent extends BaseFormControl {
3544
3544
  /** @ignore Override per gestire input in uscita */
3545
3545
  changed() {
3546
3546
  let toEmit = null;
3547
- if (!this.UseKeyValues && !this.UseCommaSeparatedList)
3547
+ if (this.UseJsonList)
3548
+ toEmit = JSON.stringify(this.Model.map(m => m.id));
3549
+ else if (!this.UseKeyValues && !this.UseCommaSeparatedList)
3548
3550
  toEmit = this.Model.map(m => m.id);
3549
3551
  else if (this.UseKeyValues)
3550
3552
  toEmit = this.Model.map(m => ({ id: m.id, description: m.description }));
3551
3553
  else if (this.UseCommaSeparatedList)
3552
3554
  toEmit = this.Model.map(m => m.id).join(',');
3553
- else if (this.UseJsonList)
3554
- toEmit = JSON.stringify(this.Model.map(m => m.id));
3555
3555
  this.EvaluatedModel = this.Model.map(t => t.itemName).join(', ');
3556
3556
  super.changed(toEmit, false, true);
3557
3557
  super.finalized();