Skip to content

[Bug] InvalidOperationException on iOS when opening Popup from Modal dialog with NavigationPage #822

@eb4545

Description

@eb4545

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

this.ShowPopup throws System.InvalidOperationException (The Parent must be of type Microsoft.Maui.Handlers.PageHandler) when trying to open a popup from a Modal dialog with NavigationPage on iOS.

Expected Behavior

Display the popup

Steps To Reproduce

  1. Open and run on iOS simulator from reproduction repository
  2. Tap "Open Modal Dialog"
  3. Tap "Open Popup" and it is crashing with the exception described

Link to public reproduction project repository

https://github.com/eichbaum/maui-popupdemo-bug

Environment

- .NET MAUI CommunityToolkit: 3.1.0
- OS: net7.0-ios Microsoft.iOS 16.0.1478
- .NET MAUI: 7.0.49

Anything else?

Works fine on Android.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions