MAUI CommunityToolkit Popup Not Reopening After Android Back Button Dismiss #2724
Unanswered
herczegzoltan
asked this question in
Q&A
Replies: 1 comment
-
Your issue may be fixed by this PR: #2716. It hasn't been released yet though |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using .NET MAUI with CommunityToolkit.Maui.Core.Popup and created a popup service to open popups from the ViewModel, like this:
await _popupService.ShowPopupAsync(new MyPopup());
It opens correctly the first time, but when I dismiss it using the Android back button, the popup closes — and afterward, I can't reopen it anymore. No exception is thrown, but nothing happens, the button is not even enabled to press again.
I pass a new instance each time:
If in the the popup itself, I use Close(result) when dismissing manually (e.g., with a button) it works as expected and closes. But when dismissed via the back button it cannot be reopen anymore. Also the animation is different from regular closing.
I also tried wrapping it in try/catch but didn’t get any exception.
Beta Was this translation helpful? Give feedback.
All reactions