mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 11:17:19 +08:00
fix(react-router): remove page transition flicker on outlet mounting (#24667)
Resolves #24666
This commit is contained in:
@ -99,7 +99,7 @@ export const IonTabs = /*@__PURE__*/ (() =>
|
||||
return;
|
||||
}
|
||||
if (child.type === IonRouterOutlet || child.type.isRouterOutlet) {
|
||||
outlet = React.cloneElement(child, { tabs: true });
|
||||
outlet = React.cloneElement(child);
|
||||
} else if (child.type === Fragment && child.props.children[0].type === IonRouterOutlet) {
|
||||
outlet = child.props.children[0];
|
||||
}
|
||||
|
Reference in New Issue
Block a user