dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

Android - picker on hidden page opens after back navigation #24862

Open pab6655 opened 1 month ago

pab6655 commented 1 month ago

Description

The app has 3 pages. There is a picker on page 1. After navigating modal to page 2, then to page 3 and then back to page 2 again, the picker on page 1 opens. Although page 1 is not even visible yet.

Steps to Reproduce

In the reproduction project:

  1. Navigate by clicking the button "Go to first modal page"
  2. Navigate by clicking the button "Go to second modal page"
  3. Click the button "Go back"
  4. The app is now back on the first modal page but shows the picker dialog from main page

Link to public reproduction project repository

https://github.com/pab6655/maui-modal-nav-picker-repro

Version with bug

8.0.82 SR8.2

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

No response

Did you find any workaround?

No response

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

ninachen03 commented 1 month ago

This issue has been verified using Visual Studio 17.12.0 Preview 2.0(8.0.90 & 8.0.80 &8.0.3).17.11.4 (7.0.101) Can repro this issue at windows platform. This issue may dup of https://github.com/dotnet/maui/issues/15394