@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.
@@ -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] === val;
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
  }