Skip to content

[BUG] [Windows] The second popup will fail to show after MAUI 8.0.60 #1931

@GuidoNeele

Description

@GuidoNeele

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

This is a very strange issue. Since MAUI version 8.0.60 the second popup will fail. Only the second time you want to show a popup will fail. The popup will not show up and if you are using CommunityToolkit.MVVM [RelayCommand] the button (triggering the popup) will be disabled, because the Task will not return. See video of the problem.

Every_second_popup_via_popupservice_fails.mp4

Expected Behavior

The popup should always be shown also the second popup.

Steps To Reproduce

  1. Download latest version of CommunityToolkit
  2. Open Directory.Build.props in root folder of project
  3. Change MauiPackageVersion property to 8.0.60
  4. Open Visual Studio and run the sample application
  5. Go to Views / Multiple Popups Page
  6. Click on "Simple Popup"
  7. Close the popup by clicking outside the popup
  8. Click on "C# Binding Popup"
  9. The button will be disabled and the popup will not appear

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui

Environment

- .NET MAUI CommunityToolkit: 9.0.1
- OS: Windows 11 (net8.0-windows10.0.19041.0)
- .NET MAUI: 8.0.60

Anything else?

To prevent the button from disabling while using CommunityToolkit.MVVM is to use [RelayCommand(AllowConcurrentExecutions = true)] instead of [RelayCommand]

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