We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddf07ff commit 7739cf7Copy full SHA for 7739cf7
packages/react/src/components/navigation/IonTabs.tsx
@@ -45,6 +45,12 @@ interface Props extends LocalJSX.IonTabs {
45
export const IonTabs = /*@__PURE__*/ (() =>
46
class extends React.Component<Props> {
47
context!: React.ContextType<typeof NavContext>;
48
+ /**
49
+ * `routerOutletRef` allows users to add a `ref` to `IonRouterOutlet`.
50
+ * Without this, `ref.current` will be `undefined` in the user's app,
51
+ * breaking their ability to access the `IonRouterOutlet` instance.
52
+ * Do not remove this ref.
53
+ */
54
routerOutletRef: React.Ref<HTMLIonRouterOutletElement> = React.createRef();
55
selectTabHandler?: (tag: string) => boolean;
56
tabBarRef = React.createRef<any>();
0 commit comments