Skip to content

fix(tabs): handle outlet in single-child fragment - #31411

Open
Benziza wants to merge 1 commit into
ionic-team:mainfrom
Benziza:fix/react-tabs-fragment-outlet
Open

Benziza wants to merge 1 commit into
ionic-team:mainfrom
Benziza:fix/react-tabs-fragment-outlet

Conversation

@Benziza

@Benziza Benziza commented Aug 26, 2026

Copy link
Copy Markdown

Issue number: resolves #31410


What is the current behavior?

IonTabs throws when IonRouterOutlet is the only child of a Fragment because the Fragment's children are treated as an array.

What is the new behavior?

  • Safely locate the router outlet inside a Fragment.
  • Add a regression test for the single-child case.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Tested with the React unit test, typecheck, lint, and build.

@Benziza
Benziza requested a review from a team as a code owner August 26, 2026 21:58
@Benziza
Benziza requested a review from thetaPC August 26, 2026 21:58
@vercel

vercel Bot commented Aug 26, 2026

Copy link
Copy Markdown

@Benziza is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added the package: react @ionic/react package label Aug 26, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: react @ionic/react package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: IonTabs throws when a Fragment contains one IonRouterOutlet

1 participant