Skip to content

[BUG] Concurrently produced popups cannot be closed (iOS) #3192

Description

@519smxs

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 multiple popups are triggered by simultaneously fired event handlers a single popup is displayed which cannot be closed.

The following runtime error is displayed in the debugger:
Popup Repro[12019:195098] [Presentation] Attempt to present <Microsoft_Maui_Controls_Platform_ControlsModalWrapper: [Memory Address 1]> on <Microsoft_Maui_Platform_PageViewController: [Memory Address 2]> (from <Microsoft_Maui_Platform_PageViewController: [Memory Address 2]>) which is already presenting <Microsoft_Maui_Controls_Platform_ControlsModalWrapper: [Memory Address 3]>.

Expected Behavior

Popups created by simultaneously fired event handlers should be stacked on top of each other in the (undefined) order in which they are created.

Steps To Reproduce

  1. Open and Run the repro Repository.
  2. Tap the entry.
  3. Press the Button.
  4. Attempt to close the popup by tapping outside of it.
  5. Note: the popup does not close.

Link to public reproduction project repository

https://github.com/519smxs/Popup-Repro

Environment

- .NET MAUI CommunityToolkit: 14.0.1
- OS: MacOS 26.3
- XCode 26.2
- .NET MAUI: 10.0.103

Issue also exists with CommunityToolkit 12.1.0 with .NET Maui 9.0.311. The issue exists on iOS 26 Simulators and Physical Devices. It does not appear to be reproducible on Android.

Anything else?

I initially observed this behavior in CommunityToolkit 12.1.0 with .NET Maui 9.0.311. In researching it I found issue 3148 which motivated me to update to CommunityToolkit 14.0.1 and .NET Maui 10.0.103. That update appears to have addressed one means of creating the issue in my main project, however, others persist.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions