Skip to content

[BUG] InvalidOperationException on iOS when opening Popup from FlyoutPage which is opened as modal #1347

@IvanMi773

Description

@IvanMi773

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

When l'm trying to show popup using this.ShowPopup in FlyoutPage opened as modal, l'm getting System.InvalidOperationException (The Parent must be of type Microsoft.Maui.Handlers.PageHandler). I've checked this behavior on iOS and Android and it seems to be iOS issue.

Expected Behavior

Calling ShowPopup in FlyoutPage should not throw an exception

Steps To Reproduce

  1. Open and run on iOS simulator reproduction project;
  2. Tap on 'Open modal' button;
  3. Tap on 'click' button;

Link to public reproduction project repository

https://gitlab.com/IvanMi773/flyout-page-bug-reproduction

Environment

- .NET MAUI CommunityToolkit: 5.3.0;
- OS: macOS 13.5;
- .NET MAUI: 7.0.92;

Anything else?

Probably similar issue but for NavigationPage: #822

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions