@homecode/ui 4.30.14 → 4.30.15
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.
|
@@ -208,9 +208,7 @@ function Select2(props) {
|
|
|
208
208
|
const { label, className, ...rest } = triggerProps;
|
|
209
209
|
const props = omit(rest, ['name', 'inputProps']);
|
|
210
210
|
isMultiple$1 && value && value.length > 0;
|
|
211
|
-
const fullSelectedLabel = [
|
|
212
|
-
// ?
|
|
213
|
-
// : [selectedLabel, label, additionalLabel].filter(Boolean);
|
|
211
|
+
const fullSelectedLabel = [selectedLabel, additionalLabel].filter(Boolean);
|
|
214
212
|
const hasSelected = fullSelectedLabel.length > 0;
|
|
215
213
|
const displayLabel = hasSelected ? fullSelectedLabel : label;
|
|
216
214
|
const title = hasSelected && !isMultiple$1 ? fullSelectedLabel : null;
|