@true-engineering/true-react-common-ui-kit 2.0.0 → 2.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/dist/true-react-common-ui-kit.js +8 -2
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +8 -2
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +91 -91
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +86 -86
- package/src/components/Select/Select.tsx +634 -630
|
@@ -8832,11 +8832,17 @@ function Select(props) {
|
|
|
8832
8832
|
]
|
|
8833
8833
|
});
|
|
8834
8834
|
useEffect(function() {
|
|
8835
|
-
var val = isMultiSelect ? value === null || value === void 0 ? void 0 : value[0] : value;
|
|
8836
8835
|
var _optionsIndexesForNavigation_find;
|
|
8837
8836
|
setFocusedListCellIndex((_optionsIndexesForNavigation_find = optionsIndexesForNavigation.find(function(index) {
|
|
8838
|
-
return filteredOptions[index] ===
|
|
8837
|
+
return isNotEmpty(strValue) && isNotEmpty(filteredOptions[index]) && convertToId(filteredOptions[index]) === convertToId(strValue);
|
|
8839
8838
|
})) !== null && _optionsIndexesForNavigation_find !== void 0 ? _optionsIndexesForNavigation_find : optionsIndexesForNavigation[0]);
|
|
8839
|
+
}, [
|
|
8840
|
+
strValue,
|
|
8841
|
+
filteredOptions,
|
|
8842
|
+
optionsIndexesForNavigation,
|
|
8843
|
+
convertToId
|
|
8844
|
+
]);
|
|
8845
|
+
useEffect(function() {
|
|
8840
8846
|
if (isOpen) {
|
|
8841
8847
|
onOpen === null || onOpen === void 0 ? void 0 : onOpen();
|
|
8842
8848
|
}
|