@true-engineering/true-react-common-ui-kit 4.0.0-alpha15 → 4.0.0-alpha16
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/package.json
CHANGED
|
@@ -19,9 +19,8 @@ import {
|
|
|
19
19
|
isNotEmpty,
|
|
20
20
|
isReactNodeNotEmpty,
|
|
21
21
|
isStringNotEmpty,
|
|
22
|
-
mergeRefs,
|
|
23
22
|
} from '@true-engineering/true-react-platform-helpers';
|
|
24
|
-
import { useTweakStyles } from '../../hooks';
|
|
23
|
+
import { useMergedRefs, useTweakStyles } from '../../hooks';
|
|
25
24
|
import { IClickHandlerEvent, ICommonProps } from '../../types';
|
|
26
25
|
import { ControlWrapper, IControlWrapperProps } from '../ControlWrapper';
|
|
27
26
|
import { IChangeInputEvent } from './types';
|
|
@@ -120,7 +119,7 @@ export const InputBase = forwardRef<HTMLInputElement, IInputBaseProps>(
|
|
|
120
119
|
const [unitsWidth, setUnitsWidth] = useState<number>();
|
|
121
120
|
|
|
122
121
|
const inputRef = useRef<HTMLInputElement>(null);
|
|
123
|
-
const mergedRef =
|
|
122
|
+
const mergedRef = useMergedRefs([ref, inputRef]);
|
|
124
123
|
|
|
125
124
|
// Try to guess input-mode if possible
|
|
126
125
|
const inputMode: IInputBaseProps['inputMode'] =
|