CommunityToolkit / Maui

The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
https://learn.microsoft.com/dotnet/communitytoolkit/maui
MIT License
2.28k stars 404 forks source link

[BUG] Media Element Popup restore from Full Screen CTD #2252

Open ne0rrmatrix opened 1 month ago

ne0rrmatrix commented 1 month ago

Is there an existing issue for this?

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

Current Behavior

When restoring media element from full screen in a popup the app crashes.

Expected Behavior

The app should not crash and media element in popup should close without error.

Steps To Reproduce

  1. Open sample app
  2. Navigate to Media Element page
  3. Open a popup
  4. Set full screen
  5. Close full screen

Link to public reproduction project repository

https://github.com/CommunityToolkit/Maui

Environment

- .NET MAUI CommunityToolkit:Current Main as of October 03 2024
- OS:iOS 18.x, Windows 10/11
- .NET MAUI:8.0.71

Anything else?

9F1D8AB0-4EB8-44F1-9CFD-4D9F605DD087

ne0rrmatrix commented 1 month ago

Anyone needing to have this today and need a temporary workaround for windows can do the following. For testing purposes and not for production a quick way to test an app where this is a blocker for testing removing the handler disconnect will prevent the crash. Not ideal or workable for a production app but if you want to test other things and require this to just work for now it is quick and dirty fix. Not ideal and not recommended for anything but testing. This specifically applies to the handler disconnect inside the popup. For media element itself follow the recommended guidelines.