Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TabbedPage displaying contents of last tab while other tab was selected #26014

Open
GregAtWasp opened this issue Nov 21, 2024 · 1 comment
Open
Assignees
Labels
migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@GregAtWasp
Copy link

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

  1. Create a new maui project.
  2. Add tabpage with multiple tabpages
  3. Place HideSoftInputOnTapped=true for all the tabpages
  4. Add to each tabpage a stacklayout containing a horizontalstacklayout and a collectionview with header, content and footer and a button.
  5. Run the app.
  6. 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

@GregAtWasp GregAtWasp added the t/bug Something isn't working label Nov 21, 2024
@ninachen03 ninachen03 added platform/android 🤖 s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert labels Nov 21, 2024
@ninachen03
Copy link

This issue has been verified using Visual Studio 17.13.0 Preview 1.0 (9.0.10 & 9.0.0 & 8.0.100 & 8.0.3 ). Can repro it on Android platform
Image

@PureWeen PureWeen added this to the Backlog milestone Nov 21, 2024
@vishnumenon2684 vishnumenon2684 self-assigned this Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration-compatibility Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert platform/android 🤖 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants