@widergy/energy-ui 3.49.1 → 3.49.2
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,3 +1,10 @@
|
|
|
1
|
+
## [3.49.2](https://github.com/widergy/energy-ui/compare/v3.49.1...v3.49.2) (2024-12-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* [OUG-7622] cast option name to string ([#546](https://github.com/widergy/energy-ui/issues/546)) ([2311427](https://github.com/widergy/energy-ui/commit/23114272063d17263612be6256757a5df73f7156))
|
|
7
|
+
|
|
1
8
|
## [3.49.1](https://github.com/widergy/energy-ui/compare/v3.49.0...v3.49.1) (2024-12-12)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -85,7 +85,7 @@ const UTSelect = _ref => {
|
|
|
85
85
|
if (isPopperOpen) setSortedOptions((0, _utils2.sortOptions)(optionsSortedByCategory, value, multiple));
|
|
86
86
|
}, [isPopperOpen]);
|
|
87
87
|
const validationData = (0, _react.useMemo)(() => error && (0, _utils.formatErrorToValidation)(error), [error]);
|
|
88
|
-
const filteredOptions = (0, _react.useMemo)(() => disableFilterOptions ? sortedOptions : sortedOptions.filter(option => option.name.toLowerCase().includes(searchTerm.toLowerCase())), [sortedOptions, searchTerm, disableFilterOptions]);
|
|
88
|
+
const filteredOptions = (0, _react.useMemo)(() => disableFilterOptions ? sortedOptions : sortedOptions.filter(option => "".concat(option.name).toLowerCase().includes(searchTerm.toLowerCase())), [sortedOptions, searchTerm, disableFilterOptions]);
|
|
89
89
|
const handleSearchChange = (0, _react.useCallback)(searchValue => {
|
|
90
90
|
onChangeSearchTerm === null || onChangeSearchTerm === void 0 || onChangeSearchTerm(searchValue);
|
|
91
91
|
setSearchTerm(searchValue);
|
|
@@ -170,7 +170,7 @@ const UTSelect = _ref => {
|
|
|
170
170
|
variant: "body"
|
|
171
171
|
}, title), /*#__PURE__*/_react.default.createElement(_lab.Autocomplete, {
|
|
172
172
|
disabled: disabled || readOnly,
|
|
173
|
-
getOptionLabel: option => option.name,
|
|
173
|
+
getOptionLabel: option => "".concat(option.name),
|
|
174
174
|
ListboxComponent: _ListboxComponent.default,
|
|
175
175
|
ListboxProps: listBoxProps,
|
|
176
176
|
multiple: multiple,
|