Skip to content

TabBar displays wrong tabs after first tab becomes invisible #34343

@vpshonyak

Description

@vpshonyak

Description

When the first ShellContent in a TabBar has its IsVisible property set to false and then navigation occurs to another tab, the TabBar displays incorrect tabs (shows wrong tab titles/content).

Steps to Reproduce

  1. Create a MAUI Shell application with a TabBar containing 7 tabs
  2. On the first tab (Home/MainPage), set this.IsVisible = false in code-behind
  3. Navigate to another tab (e.g., Page5) using Shell.Current.GoToAsync($"///{nameof(Page5)}")
  4. Observe that the TabBar now displays incorrect tabs on Android
  5. Navigate to another tab (e.g., Page51) using await Shell.Current.GoToAsync($"{nameof(Page51)}");
  6. On iPhone Page51 doesn't appear. It shows only after tapping three dots (more tabs button) ... !?!?

Link to public reproduction project repository

https://github.com/vpshonyak/MauiBug1

Version with bug

9.0.100 SR10

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

iOS, Android

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-shellShell Navigation, Routes, Tabs, Flyouti/regressionThis issue described a confirmed regression on a currently supported versionpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/androidplatform/iosregressed-in-9.0.40s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions