@oliasoft-open-source/react-ui-library 4.15.1-beta-7 → 4.15.1-beta-9
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 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20890,11 +20890,6 @@ const Trigger = ({
|
|
|
20890
20890
|
}) => {
|
|
20891
20891
|
var _a2;
|
|
20892
20892
|
const [inputRef, setInputFocus] = useFocus();
|
|
20893
|
-
useEffect(() => {
|
|
20894
|
-
if (isOpen2 && typeof setInputFocus === "function") {
|
|
20895
|
-
setInputFocus();
|
|
20896
|
-
}
|
|
20897
|
-
}, [isOpen2, setInputFocus]);
|
|
20898
20893
|
const hasSelection2 = Array.isArray(selectedOptions) ? selectedOptions.length > 0 && ((_a2 = selectedOptions[0]) == null ? void 0 : _a2.value) : selectedOptions == null ? void 0 : selectedOptions.value;
|
|
20899
20894
|
const canClear = clearable && hasSelection2;
|
|
20900
20895
|
const order2 = (() => {
|
|
@@ -20933,7 +20928,14 @@ const Trigger = ({
|
|
|
20933
20928
|
right2 ? styles$m.right : "",
|
|
20934
20929
|
order2
|
|
20935
20930
|
),
|
|
20936
|
-
onClick:
|
|
20931
|
+
onClick: (evt) => {
|
|
20932
|
+
onClickTrigger(evt);
|
|
20933
|
+
if (typeof setInputFocus === "function") {
|
|
20934
|
+
requestAnimationFrame(() => {
|
|
20935
|
+
setInputFocus();
|
|
20936
|
+
});
|
|
20937
|
+
}
|
|
20938
|
+
},
|
|
20937
20939
|
onFocus,
|
|
20938
20940
|
onBlur,
|
|
20939
20941
|
"data-error": error2 || null,
|