You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix: MAUI Floor Filter Crash on Site Selection in .NET 9 (#645)
* Remove missing AOT compilation from project configuration
* Updated navigation methods to use PushAsync and PopAsync
instead of PushModalAsync and PopModalAsync, shifting
from modal to standard navigation.
This is temporary fix that prevents a MAUI bug reported here
dotnet/maui#29512
* Fixing indentation
* Fixing indentation
* Add platform-specific navigation handling
* Adding comments to explain the bug and workaround
* Adding more detailed comments
// Explanation: Due to a bug in .NET MAUI 9, navigating from a CollectionView selection using PushAsync avoids a crash that occurs when using PushModalAsync.
151
+
// The crash is caused by the CollectionView's VirtualView not being null during navigation, leading to an unhandled exception.
152
+
// This workaround uses PushAsync on Windows/Android platforms to prevent the crash. When the bug is fixed in MAUI, this conditional can be revisited.
153
+
// TODO: Remove this conditional when the MAUI bug is fixed.
0 commit comments