x-ui-design 0.5.57 → 0.5.58
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.esm.js +4 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/lib/components/Select/Select.tsx +5 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3511,7 +3511,8 @@ const SelectComponent = ({
|
|
|
3511
3511
|
return;
|
|
3512
3512
|
}
|
|
3513
3513
|
const timeout = setTimeout(() => {
|
|
3514
|
-
|
|
3514
|
+
setSearchFocused(true);
|
|
3515
|
+
e.target.value = (searchInputRef.current?.innerText || e.target.innerText).replace('\n', '');
|
|
3515
3516
|
setSearchQuery(e.target.value);
|
|
3516
3517
|
onSearch?.(e.target.value);
|
|
3517
3518
|
if (e.key === 'Enter' && searchQuery.trim() !== '') {
|
|
@@ -3532,6 +3533,7 @@ const SelectComponent = ({
|
|
|
3532
3533
|
}
|
|
3533
3534
|
onChange?.(updatedSelected);
|
|
3534
3535
|
setSelected(updatedSelected);
|
|
3536
|
+
setSearchFocused(false);
|
|
3535
3537
|
}
|
|
3536
3538
|
}
|
|
3537
3539
|
clearTimeout(timeout);
|
|
@@ -3660,6 +3662,7 @@ const SelectComponent = ({
|
|
|
3660
3662
|
style: {
|
|
3661
3663
|
maxHeight: listHeight,
|
|
3662
3664
|
overflowY: 'auto',
|
|
3665
|
+
// display: !filteredOptions.length && asTag ? 'none' : 'block',
|
|
3663
3666
|
maxWidth: selectRef.current ? `${selectRef.current.getBoundingClientRect().width}px` : 'inherit'
|
|
3664
3667
|
}
|
|
3665
3668
|
}, asTag && !!searchQuery && /*#__PURE__*/React.createElement(Option, {
|