diff --git a/packages/react-ui/components/DateInput/__stories__/DateInput.stories.tsx b/packages/react-ui/components/DateInput/__stories__/DateInput.stories.tsx
index 671d91d24e3..96c73cd9393 100644
--- a/packages/react-ui/components/DateInput/__stories__/DateInput.stories.tsx
+++ b/packages/react-ui/components/DateInput/__stories__/DateInput.stories.tsx
@@ -320,3 +320,12 @@ export const ShouldSetFocusOnPlaceholderClick: Story = () => {
return ;
};
ShouldSetFocusOnPlaceholderClick.storyName = 'should set focus on placeholder click';
+
+export const TEST: Story = () => {
+ return (
+
+
+
+ );
+};
+TEST.parameters = { creevey: { skip: true } };
diff --git a/packages/react-ui/internal/InputLikeText/InputLikeText.tsx b/packages/react-ui/internal/InputLikeText/InputLikeText.tsx
index f729b9cbb0b..acfaf0e8251 100644
--- a/packages/react-ui/internal/InputLikeText/InputLikeText.tsx
+++ b/packages/react-ui/internal/InputLikeText/InputLikeText.tsx
@@ -4,6 +4,7 @@ import debounce from 'lodash.debounce';
import { globalObject, SafeTimer } from '@skbkontur/global-object';
import { isNonNullable } from '../../lib/utils';
+import { mergeRefs } from '../../lib/mergeRefs';
import { isKeyTab, isShortcutPaste } from '../../lib/events/keyboard/identifiers';
import { MouseDrag, MouseDragEventHandler } from '../../lib/events/MouseDrag';
import { isEdge, isIE11, isMobile } from '../../lib/client';
@@ -170,7 +171,7 @@ export class InputLikeText extends React.Component {
this.theme = theme;
return (
-
+
{this.renderMain}
);
@@ -257,7 +258,7 @@ export class InputLikeText extends React.Component = Nullable | React.RefCallback>;
-type RefCallback = ReturnType>;
const CALLBACK_AS_KEY = { callbackAsKey: true };
type CacheKey = NonNullable | typeof CALLBACK_AS_KEY>;
-type CacheValue = RefCallback | WeakMap, CacheValue>;
+type CacheValue = React.RefCallback | WeakMap, CacheValue>;
const cache = new WeakMap, CacheValue>();
@@ -29,7 +28,7 @@ const cache = new WeakMap, CacheValue>();
* return ;
* });
*/
-export function mergeRefs(...refs: Array>): RefCallback {
+export function mergeRefs(...refs: Array>): React.RefCallback {
const cacheLevel = getLeafRefInCache(...refs);
const cachedCallback = cacheLevel.get(CALLBACK_AS_KEY);