@thecb/components 9.4.0-beta.5 → 9.4.0-beta.7
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/dist/index.cjs.js +3 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -7
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/searchable-select/SearchableSelect.js +8 -8
- package/src/components/atoms/searchable-select/SearchableSelect.stories.js +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -27554,13 +27554,9 @@ var SearchableSelect = function SearchableSelect(_ref) {
|
|
|
27554
27554
|
itemList = _useState2[0],
|
|
27555
27555
|
setItemList = _useState2[1];
|
|
27556
27556
|
|
|
27557
|
-
var
|
|
27558
|
-
name: SELECT_ALL
|
|
27559
|
-
|
|
27560
|
-
};
|
|
27561
|
-
var completeOptionsList = [selectAllOption].concat(_toConsumableArray(itemList.sort(function (a, b) {
|
|
27562
|
-
return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
|
|
27563
|
-
})));
|
|
27557
|
+
var completeOptionsList = itemList.sort(function (a, b) {
|
|
27558
|
+
return a.name == SELECT_ALL ? -1 : b.name === SELECT_ALL ? 1 : a.name.toLowerCase().localeCompare(b.name.toLowerCase());
|
|
27559
|
+
});
|
|
27564
27560
|
React.useEffect(function () {
|
|
27565
27561
|
return setItemList(items);
|
|
27566
27562
|
}, [items, selectedItems]);
|