Maui: [BUG] Problem closing a popup in iOS

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

It appears there are still issues managing popups on iOS. I have a popup that creates a loader. When the loarder appears, I open a DisplayAlert to display a message. Meanwhile, a Task closes the loader. I would expect the loader to be closed and the DisplayAlert to remain open: in fact, in Android this is the correct behavior. On iOS, the DisplayAlert is closed and the loader popup remains open

Expected Behavior

Closing the popup should close the popup, not the DisplayAlert

Steps To Reproduce

Run the repo on iOS. Press the “Popup problem!!!” button Press the button “Press to show a loader!!”

Link to public reproduction project repository

https://github.com/acaliaro/MauiPopupResizeProblem

Environment

- .NET MAUI CommunityToolkit:9.0.1
- OS:iOS 17.3
- .NET MAUI:8.0.60

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 9
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Just encountered the same problem. The spinner popup is hidden by the FilePicker modal window. Then the timeout hits and the spinner popup closes itself. On iOS the closing code closes the FilePicker but the spinner stays open forever.

Thanks for the effort @cat0363 , but that’s not what I want. Unfortunately due to how the popup was implemented, I don’t think the loader issue can be managed using the communityToolkit popup, unless you have a reference for each of the open popups so you can close the single popup using the reference.

ok @cat0363 , let me know if you found some news. BTW, I think in XF there was not this kind of problem. Am I wrong?