@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.
- package/esm2022/core/pipes/format.pipe.mjs +3 -3
- package/esm2022/ui.application/ui/components/chips-selector/chips-selector.component.mjs +7 -9
- package/fesm2022/arsedizioni-ars-utils-core.mjs +2 -2
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs +6 -8
- package/fesm2022/arsedizioni-ars-utils-ui.application.mjs.map +1 -1
- package/package.json +7 -7
- package/ui.application/ui/components/chips-selector/chips-selector.component.d.ts +1 -1
|
@@ -2305,16 +2305,14 @@ class ChipsSelectorComponent {
|
|
|
2305
2305
|
*/
|
|
2306
2306
|
updateValue() {
|
|
2307
2307
|
setTimeout(() => {
|
|
2308
|
-
|
|
2309
|
-
this.
|
|
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
|
-
|
|
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
|
}
|