-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
area-controls-dialogalertDisplayAlert, dialogDisplayAlert, dialogarea-controls-pagesPage typesPage typesplatform/iosplatform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Description
Description
This issue is seen only on iOS/MacOS and only in conjunction with a modal page navigation.
"Regular" navigation is fine
When we closing a modal page, then Alert popup (and most likely other popups) may be displayed on a window which is no longer in a hierarchy.
This causing a deadlock as await DisplayAlert() does not return nor throwing an exception.
Steps to Reproduce
- Open new modal page
- Close it
- Show alert using DisplayAlert()
Expected result: popup shown
Actual results: popup not visible but await DisplayAlert() does not return.
Link to public reproduction project repository
https://github.com/rafalka/MauiAlertModalNavigationIssue
Version with bug
9.0.90 SR9
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
iOS 18.5, MacOS 15.5
Did you find any workaround?
No
Relevant log output
[Presentation] Attempt to present <UIAlertController: 0x106a6f000> on <Microsoft_Maui_Controls_Platform_ControlsModalWrapper: 0x105e36f40> (from <Microsoft_Maui_Controls_Platform_ControlsModalWrapper: 0x105e36f40>) whose view is not in the window hierarchy.Metadata
Metadata
Assignees
Labels
area-controls-dialogalertDisplayAlert, dialogDisplayAlert, dialogarea-controls-pagesPage typesPage typesplatform/iosplatform/macosmacOS / Mac CatalystmacOS / Mac Catalysts/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working