@oliasoft-open-source/react-ui-library 4.15.6-beta-2 → 4.15.6-beta-4

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
@@ -9096,17 +9096,6 @@ const Input$1 = forwardRef(
9096
9096
  //use width instead
9097
9097
  }, ref2) => {
9098
9098
  const disabledContext = useContext(DisabledContext);
9099
- const inputRef = useRef(null);
9100
- const handleChange = (e2) => {
9101
- const cursorPosition = e2.target.selectionStart;
9102
- onChange(e2);
9103
- setTimeout(() => {
9104
- if (inputRef.current && cursorPosition !== null) {
9105
- inputRef.current.selectionStart = cursorPosition;
9106
- inputRef.current.selectionEnd = cursorPosition;
9107
- }
9108
- }, 0);
9109
- };
9110
9099
  const order2 = (() => {
9111
9100
  if (groupOrder) {
9112
9101
  switch (groupOrder) {
@@ -9134,12 +9123,12 @@ const Input$1 = forwardRef(
9134
9123
  children: /* @__PURE__ */ jsx(
9135
9124
  "input",
9136
9125
  {
9137
- ref: ref2 || inputRef,
9126
+ ref: ref2,
9138
9127
  type: type || "text",
9139
9128
  size: size2 || 20,
9140
9129
  placeholder: placeholder3 ?? "",
9141
9130
  value: value ?? "",
9142
- onChange: handleChange,
9131
+ onChange,
9143
9132
  onKeyPress,
9144
9133
  onFocus,
9145
9134
  onBlur,
@@ -20952,10 +20941,12 @@ const Trigger = ({
20952
20941
  ),
20953
20942
  onClick: (evt) => {
20954
20943
  evt.stopPropagation();
20955
- onClickTrigger(evt);
20956
- if (typeof setInputFocus === "function") {
20957
- requestAnimationFrame(() => setInputFocus());
20958
- }
20944
+ requestAnimationFrame(() => {
20945
+ onClickTrigger(evt);
20946
+ if (typeof setInputFocus === "function") {
20947
+ setInputFocus();
20948
+ }
20949
+ });
20959
20950
  },
20960
20951
  onFocus,
20961
20952
  onBlur,
@@ -56798,21 +56789,9 @@ const TextArea = ({
56798
56789
  testId
56799
56790
  }) => {
56800
56791
  const disabledContext = useContext(DisabledContext);
56801
- const textareaRef = useRef(null);
56802
- const handleChange = (e2) => {
56803
- const cursorPosition = e2.target.selectionStart;
56804
- onChange(e2);
56805
- setTimeout(() => {
56806
- if (textareaRef.current && cursorPosition !== null) {
56807
- textareaRef.current.selectionStart = cursorPosition;
56808
- textareaRef.current.selectionEnd = cursorPosition;
56809
- }
56810
- }, 0);
56811
- };
56812
56792
  const textarea2 = /* @__PURE__ */ jsx(
56813
56793
  "textarea",
56814
56794
  {
56815
- ref: textareaRef,
56816
56795
  className: cx$2(
56817
56796
  styles$5.textarea,
56818
56797
  error2 ? styles$5.error : "",
@@ -56824,7 +56803,7 @@ const TextArea = ({
56824
56803
  placeholder: placeholder3,
56825
56804
  cols,
56826
56805
  rows,
56827
- onChange: handleChange,
56806
+ onChange,
56828
56807
  disabled: disabled2 || disabledContext,
56829
56808
  onKeyPress,
56830
56809
  onFocus,