File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -176,10 +176,12 @@ OutlineInternal.propTypes = {
176
176
...eventsProps ( ) ,
177
177
} ;
178
178
179
- export default function Outline ( props ) {
179
+ function Outline ( props , ref ) {
180
180
return (
181
181
< DocumentContext . Consumer >
182
- { context => < OutlineInternal { ...context } { ...props } /> }
182
+ { context => < OutlineInternal ref = { ref } { ...context } { ...props } /> }
183
183
</ DocumentContext . Consumer >
184
184
) ;
185
185
}
186
+
187
+ export default React . forwardRef ( Outline ) ;
Original file line number Diff line number Diff line change @@ -444,11 +444,12 @@ PageInternal.propTypes = {
444
444
...eventsProps ( ) ,
445
445
} ;
446
446
447
- export default function Page ( props ) {
447
+ function Page ( props , ref ) {
448
448
return (
449
449
< DocumentContext . Consumer >
450
450
{ context => (
451
451
< PageInternal
452
+ ref = { ref }
452
453
{ ...context }
453
454
{ ...props }
454
455
// For backwards compatibility
@@ -462,3 +463,5 @@ export default function Page(props) {
462
463
</ DocumentContext . Consumer >
463
464
) ;
464
465
}
466
+
467
+ export default React . forwardRef ( Page ) ;
You can’t perform that action at this time.
0 commit comments