@arsedizioni/ars-utils 18.3.34 → 18.3.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.
@@ -2305,16 +2305,14 @@ class ChipsSelectorComponent {
2305
2305
  */
2306
2306
  updateValue() {
2307
2307
  setTimeout(() => {
2308
- if (!this.multiple()) {
2309
- this.writeValue([this.singleSelection]);
2308
+ const value = !this.multiple() && this.collapsed() && this.collapsedDisplayMode() === "button"
2309
+ ? this.singleSelection
2310
+ : this.selection;
2311
+ if (Array.isArray(value)) {
2312
+ this.writeValue(value);
2310
2313
  }
2311
2314
  else {
2312
- if (Array.isArray(this.selection)) {
2313
- this.writeValue(this.selection);
2314
- }
2315
- else {
2316
- this.writeValue([this.selection]);
2317
- }
2315
+ this.writeValue([value]);
2318
2316
  }
2319
2317
  }, 250);
2320
2318
  }