File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ export const Preview = React.forwardRef<
16
16
text = text . substr ( 0 , PREVIEW_MAX_LENGTH ) ;
17
17
return (
18
18
< div
19
- ref = { ref }
20
19
style = { {
21
20
display : "none" ,
22
21
overflow : "hidden" ,
@@ -26,6 +25,7 @@ export const Preview = React.forwardRef<
26
25
maxWidth : 0 ,
27
26
} }
28
27
{ ...props }
28
+ ref = { ref }
29
29
>
30
30
{ text }
31
31
{ renderWhiteSpace ( text ) }
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ export type TextProps = RootProps;
7
7
export const Text = React . forwardRef <
8
8
React . ElementRef < "p" > ,
9
9
Readonly < TextProps >
10
- > ( ( { style, ...props } ) => (
10
+ > ( ( { style, ...props } , ref ) => (
11
11
< p
12
12
{ ...props }
13
+ ref = { ref }
13
14
style = { {
14
15
fontSize : "14px" ,
15
16
lineHeight : "24px" ,
You can’t perform that action at this time.
0 commit comments