labsense-ui-kit 1.3.64 → 1.3.65
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.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -0
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8007,6 +8007,14 @@ var OptionComponent = function OptionComponent(_ref11) {
|
|
|
8007
8007
|
setHighlightedIndex = _useState2[1];
|
|
8008
8008
|
var optionContainerRef = React.useRef(null);
|
|
8009
8009
|
var searchInputRef = React.useRef(null);
|
|
8010
|
+
React.useEffect(function () {
|
|
8011
|
+
if (searchBox && searchInputRef.current) {
|
|
8012
|
+
setTimeout(function () {
|
|
8013
|
+
var _searchInputRef$curre;
|
|
8014
|
+
(_searchInputRef$curre = searchInputRef.current) === null || _searchInputRef$curre === void 0 ? void 0 : _searchInputRef$curre.focus();
|
|
8015
|
+
}, 50);
|
|
8016
|
+
}
|
|
8017
|
+
}, [searchBox]);
|
|
8010
8018
|
var handleSearchChange = function handleSearchChange(e) {
|
|
8011
8019
|
setSearchQuery(e.target.value.trimStart());
|
|
8012
8020
|
setHighlightedIndex(-1);
|