@oliasoft-open-source/react-ui-library 4.19.6-beta-1 → 4.19.6-beta-2

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
@@ -9092,7 +9092,7 @@ const Input$1 = forwardRef(
9092
9092
  },
9093
9093
  onPaste = () => {
9094
9094
  },
9095
- selectOnFocus = false,
9095
+ selectOnFocus = true,
9096
9096
  name: name2 = void 0,
9097
9097
  type = "text",
9098
9098
  tabIndex = 0,
@@ -51468,7 +51468,7 @@ const NumberInput = ({
51468
51468
  },
51469
51469
  onBlur = () => {
51470
51470
  },
51471
- selectOnFocus = false,
51471
+ selectOnFocus,
51472
51472
  tabIndex = 0,
51473
51473
  testId,
51474
51474
  tooltip: tooltip2 = null,
@@ -51553,11 +51553,7 @@ const NumberInput = ({
51553
51553
  useEffect(() => {
51554
51554
  if (inputRef && (inputRef == null ? void 0 : inputRef.current) && enableDisplayRounding && focus2) {
51555
51555
  const textInput = inputRef.current;
51556
- if (textInput) {
51557
- if (selectOnFocus) {
51558
- textInput.select();
51559
- return;
51560
- }
51556
+ if (textInput && !selectOnFocus) {
51561
51557
  setTimeout(() => {
51562
51558
  const { length: length2 } = safeToString(displayValue);
51563
51559
  textInput.setSelectionRange(length2, length2);
@@ -66439,7 +66435,7 @@ const UnitInput = ({
66439
66435
  enableCosmeticRounding = true,
66440
66436
  enableDisplayRounding = false,
66441
66437
  roundDisplayValue,
66442
- selectOnFocus = false
66438
+ selectOnFocus
66443
66439
  }) => {
66444
66440
  const context2 = useUnitContext();
66445
66441
  const runAfterUpdate = useRunAfterUpdate();
@@ -66808,7 +66804,6 @@ const convertVisibleRows = ({
66808
66804
  enableCosmeticRounding,
66809
66805
  enableDisplayRounding,
66810
66806
  roundDisplayValue,
66811
- selectOnFocus: true,
66812
66807
  onChange: (evt) => {
66813
66808
  const { value: value2 } = evt.target;
66814
66809
  const storageUnit2 = storageUnits[unitKey];