fix(react): fix refs for controllers, overlays, ionpage, and ionrouteroutlet, fixes #19924 (#20012)

This commit is contained in:
Ely Lucas
2019-11-27 16:08:56 -07:00
committed by Ely Lucas
parent 93bd4afb1d
commit ab0f92e01f
6 changed files with 78 additions and 18 deletions

View File

@ -87,6 +87,10 @@ export class StackManager extends React.Component<StackManagerProps, StackManage
ref: this.routerOutletEl
};
if(ionRouterOutlet.props.forwardedRef) {
ionRouterOutlet.props.forwardedRef.current = this.routerOutletEl;
}
if (isDevMode()) {
elementProps['data-stack-id'] = this.id;
}
@ -99,4 +103,4 @@ export class StackManager extends React.Component<StackManagerProps, StackManage
static get contextType() {
return RouteManagerContext;
}
}
}