@oliasoft-open-source/react-ui-library 4.15.1-beta-7 → 4.15.1-beta-8

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 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,12 @@ const Trigger = ({
20933
20928
  right2 ? styles$m.right : "",
20934
20929
  order2
20935
20930
  ),
20936
- onClick: onClickTrigger,
20931
+ onClick: (evt) => {
20932
+ onClickTrigger(evt);
20933
+ if (typeof setInputFocus === "function") {
20934
+ setInputFocus();
20935
+ }
20936
+ },
20937
20937
  onFocus,
20938
20938
  onBlur,
20939
20939
  "data-error": error2 || null,