CommunityToolkit / CommunityToolkit/Maui

[BUG] Popup v2 - When used in an MAUI embedded application the popup is no longer shown

Open
#2,709 3 comments 0 reactions 0 assignees View on GitHub
bug unverified
Dominant language
C#
Stars
2.7k
Forks
500
Avg merge
2d 14h
Merged PRs (30d)
7

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

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

- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug

### Current Behavior

From a MAUI page I use the `public static void ShowPopup(this Page page, View view, IPopupOptions? options = null)` extension method to display a Popup.

The view passed to the method is deriving from `CommunityToolkit.Maui.Views.Popup`.

In v11.2.0 the popup would appear. After updating to v12.0.0 nothing happens (no exception, but no view is displayed).

### Expected Behavior

I would expect the popup to appear on the screen.

### Steps To Reproduce

You would need an application leveraging [MAUI embedding](https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/native-embedding?view=net-maui-9.0&pivots=devices-ios). I have not yet create a reproduction but will update the issue once I have done that.

### Link to public reproduction project repository

https://github.com/follesoe/maui-samples/tree/community-toolkit-poup-crash

### Environment

```markdown
- .NET MAUI CommunityToolkit: 12.0.0
- OS: macOS
- .NET MAUI: 9.0.71
```

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the ShowPopup(Page, View, IPopupOptions?) extension method and the linked MAUI embedding reproduction project. Compare behavior between .NET MAUI CommunityToolkit 11.2.0 and 12.0.0 on the reported environment, then confirm that a Popup-derived view is displayed from an embedded MAUI page without an exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.