We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b05e6a commit 94bee57Copy full SHA for 94bee57
src/CommunityToolkit.Maui/Views/Popup/PopupContainer.cs
@@ -47,10 +47,15 @@ public PopupContainer(Popup content, TaskCompletionSource<PopupResult>? taskComp
47
On<iOS>().SetModalPresentationStyle(UIModalPresentationStyle.OverFullScreen);
48
}
49
50
- //protected override bool OnBackButtonPressed()
51
- //{
52
- // return !CanBeDismissedByTappingOutsideOfPopup;
53
- //}
+ protected override bool OnBackButtonPressed()
+ {
+ if (CanBeDismissedByTappingOutsideOfPopup)
54
+ return base.OnBackButtonPressed();
55
+ }
56
+
57
+ return true;
58
59
60
/// <summary>
61
/// Gets or sets a value indicating whether the popup can be dismissed by tapping outside the Popup.
0 commit comments