-
Notifications
You must be signed in to change notification settings - Fork 1.9k
TabbedPage displaying contents of last tab while other tab was selected #26014
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
area-controls-tabbedpageTabbedPageTabbedPagemigration-compatibilityXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-ConvertXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convertplatform/androids/triagedIssue has been reviewedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versionPlease try to reproduce the potential issue on the latest public versions/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
The TabbedPage behaves weird when using a combination of Stacklayout, CollectionViews, buttons and horizontalstacklayout over multiple tabs.
If you click the second to last tab (Penultimate) the correct title is selected (tabheader) but the content below it is displayed from the wrong tab (Always the content of the last tabpage).
Steps to Reproduce
- Create a new maui project.
- Add tabpage with multiple tabpages
- Place HideSoftInputOnTapped=true for all the tabpages
- Add to each tabpage a stacklayout containing a horizontalstacklayout and a collectionview with header, content and footer and a button.
- Run the app.
- After startup. immediately press the penultimate tab and observe the bug.
Expected outcome: Penultimate tab is displayed on the screen
actual outcome: The header of the penultimate is selected but the content below is of the last tab page.
(see testproject for example)
Link to public reproduction project repository
https://github.com/GregAtWasp/MauiTabbedPageBug
Version with bug
9.0.0 GA
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
android 7.1 and up
Did you find any workaround?
not yet but still looking.
Relevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-controls-tabbedpageTabbedPageTabbedPagemigration-compatibilityXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-ConvertXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convertplatform/androids/triagedIssue has been reviewedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versionPlease try to reproduce the potential issue on the latest public versions/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working