We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e61bf3d commit f5cf05cCopy full SHA for f5cf05c
packages/preview/src/preview.tsx
@@ -16,7 +16,6 @@ export const Preview = React.forwardRef<
16
text = text.substr(0, PREVIEW_MAX_LENGTH);
17
return (
18
<div
19
- ref={ref}
20
style={{
21
display: "none",
22
overflow: "hidden",
@@ -26,6 +25,7 @@ export const Preview = React.forwardRef<
26
25
maxWidth: 0,
27
}}
28
{...props}
+ ref={ref}
29
>
30
{text}
31
{renderWhiteSpace(text)}
packages/text/src/text.tsx
@@ -7,9 +7,10 @@ export type TextProps = RootProps;
7
export const Text = React.forwardRef<
8
React.ElementRef<"p">,
9
Readonly<TextProps>
10
->(({ style, ...props }) => (
+>(({ style, ...props }, ref) => (
11
<p
12
13
14
15
fontSize: "14px",
lineHeight: "24px",
0 commit comments