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<
1616 text = text . substr ( 0 , PREVIEW_MAX_LENGTH ) ;
1717 return (
1818 < div
19- ref = { ref }
2019 style = { {
2120 display : "none" ,
2221 overflow : "hidden" ,
@@ -26,6 +25,7 @@ export const Preview = React.forwardRef<
2625 maxWidth : 0 ,
2726 } }
2827 { ...props }
28+ ref = { ref }
2929 >
3030 { text }
3131 { renderWhiteSpace ( text ) }
Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ export type TextProps = RootProps;
77export const Text = React . forwardRef <
88 React . ElementRef < "p" > ,
99 Readonly < TextProps >
10- > ( ( { style, ...props } ) => (
10+ > ( ( { style, ...props } , ref ) => (
1111 < p
1212 { ...props }
13+ ref = { ref }
1314 style = { {
1415 fontSize : "14px" ,
1516 lineHeight : "24px" ,
You can’t perform that action at this time.
0 commit comments