Skip to content

Commit

Permalink
docs(tabs): add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
thetaPC committed Oct 10, 2024
1 parent ddf07ff commit 7739cf7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/react/src/components/navigation/IonTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ interface Props extends LocalJSX.IonTabs {
export const IonTabs = /*@__PURE__*/ (() =>
class extends React.Component<Props> {
context!: React.ContextType<typeof NavContext>;
/**
* `routerOutletRef` allows users to add a `ref` to `IonRouterOutlet`.
* Without this, `ref.current` will be `undefined` in the user's app,
* breaking their ability to access the `IonRouterOutlet` instance.
* Do not remove this ref.
*/
routerOutletRef: React.Ref<HTMLIonRouterOutletElement> = React.createRef();
selectTabHandler?: (tag: string) => boolean;
tabBarRef = React.createRef<any>();
Expand Down

0 comments on commit 7739cf7

Please sign in to comment.