-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Dismissing a popup also dismisses modal parent on iOS #1443
Comments
I think I may have been wrong in my original assessment. In my demo/sample app (linked), behaviour is the same whether tapping out or calling |
@matt-goldman , Is the behavior you expect below? iPhone.14.iOS.16.4.2023-10-05.17-27-50.mp4This requires both PR #1361 and PR #1369 fixes to be merged into main. |
@cat0363 yes that looks like what I expect. Good to know, thanks - I'll keep an eye out for those PRs :) |
Hi, when will be released the new version? I have updated to "6" and I have problems on iOS with the popup |
This issue was resolved in version 6.1.0. [Version 6.1.0] iPhone.14.iOS.16.4.2023-11-06.08-33-57.mp4 |
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
If you open a popup from a modal page, the modal page is popped when the popup is closed (either by calling
Close()
or by tapping out).This causes some pretty significant knock-on effects; in the sample I'm attaching, for example, you can't then re-open the modal page. In a real-world app I'm working on, this has some other painful consequences.
Expected Behavior
When a popup is opened from a modal page, only the popup should disappear when dismissing or closing the popup.
Steps To Reproduce
Link to public reproduction project repository
https://github.com/matt-goldman/MCT-popup-issue-demo
Environment
Anything else?
I have found a partial workaround, which is to call
Navigation.PopModalAsync()
directly rather than using the popup methods (eg, overrideOnDismissedByTappingOutSideOfPopup
or usePopModalAsync
instead ofClose
). This still has the same result - the popup is dismissed as well as the modal - but it does however prevent the aforementioned knock-on effects. In the sample, I have commented out this workaround, it's in thePopups/PopupPage.xaml.cs
file. If you uncomment this you can see the difference in behaviour.I've also added some logging in
MainPage
which proves the button click event is registered.I suspect this may be related to #1347 (in fact I'm sure it is) but I can't quite connect the dots.
The text was updated successfully, but these errors were encountered: