@connectif/ui-components 4.0.0 → 4.0.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.0.1] - 2026-01-13
4
+
5
+ ### Fixed
6
+
7
+ - Fixed bug in `Autocomplete` component, where the placeholder was hidden when multiple prop was enabled and no value was selected.
8
+
3
9
  ## [4.0.0] - 2026-01-13
4
10
 
5
11
  ### Added
package/dist/index.js CHANGED
@@ -22836,7 +22836,7 @@ var AutocompleteInput = function AutocompleteInput2({
22836
22836
  }
22837
22837
  },
22838
22838
  maxLength: maxValueLength,
22839
- placeholder: multiple && maxValues && Array.isArray(value) && value.length >= maxValues ? maxValuesText || t("AUTOCOMPLETE.MAX_VALUES") : Array.isArray(value) && value.length > 0 ? "" : value ? "" : placeholder,
22839
+ placeholder: multiple && maxValues && Array.isArray(value) && value.length >= maxValues ? maxValuesText || t("AUTOCOMPLETE.MAX_VALUES") : Array.isArray(value) && value.length > 0 || !Array.isArray(value) && !!value ? "" : placeholder,
22840
22840
  value: inputValue,
22841
22841
  multiline: false,
22842
22842
  disabled: disabled || (multiple && maxValues && Array.isArray(value) && value.length >= maxValues ? true : false),