@agilant/toga-blox 1.0.79 → 1.0.80
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.
|
@@ -24,10 +24,11 @@ const MultiSelectInput = ({ id, name, options = [], selectedValue = [], onChange
|
|
|
24
24
|
}
|
|
25
25
|
// If user selected ALL possible options, show "All items selected"
|
|
26
26
|
if (selected.length === multiSelectOptions.length) {
|
|
27
|
+
``;
|
|
27
28
|
return "All items selected";
|
|
28
29
|
}
|
|
29
30
|
// Default behavior: comma-separated labels
|
|
30
|
-
return selected.map((s) => s.label).join("
|
|
31
|
+
return selected.map((s) => s.label).join(", ");
|
|
31
32
|
};
|
|
32
33
|
return (_jsx("div", { className: `${width}`, children: _jsx(MultiSelect, { id: id, name: name, className: className, options: multiSelectOptions, value: multiSelectValue, onChange: (selectedOptions) => {
|
|
33
34
|
// Convert back to OptionType when passing to onChange
|