@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
|
@@ -8823,11 +8823,17 @@
|
|
|
8823
8823
|
]
|
|
8824
8824
|
});
|
|
8825
8825
|
React.useEffect(function() {
|
|
8826
|
-
var val = isMultiSelect ? value === null || value === void 0 ? void 0 : value[0] : value;
|
|
8827
8826
|
var _optionsIndexesForNavigation_find;
|
|
8828
8827
|
setFocusedListCellIndex((_optionsIndexesForNavigation_find = optionsIndexesForNavigation.find(function(index) {
|
|
8829
|
-
return filteredOptions[index] ===
|
|
8828
|
+
return isNotEmpty(strValue) && isNotEmpty(filteredOptions[index]) && convertToId(filteredOptions[index]) === convertToId(strValue);
|
|
8830
8829
|
})) !== null && _optionsIndexesForNavigation_find !== void 0 ? _optionsIndexesForNavigation_find : optionsIndexesForNavigation[0]);
|
|
8830
|
+
}, [
|
|
8831
|
+
strValue,
|
|
8832
|
+
filteredOptions,
|
|
8833
|
+
optionsIndexesForNavigation,
|
|
8834
|
+
convertToId
|
|
8835
|
+
]);
|
|
8836
|
+
React.useEffect(function() {
|
|
8831
8837
|
if (isOpen) {
|
|
8832
8838
|
onOpen === null || onOpen === void 0 ? void 0 : onOpen();
|
|
8833
8839
|
}
|