Skip to content

Commit

Permalink
Changed to call Popup's MapOnClosed method (#2202)
Browse files Browse the repository at this point in the history
Changed so that MapOnClosed method is called
  • Loading branch information
cat0363 authored Sep 12, 2024
1 parent 52b84a9 commit 4d1d049
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public partial class PopupHandler
/// </summary>
public static CommandMapper<IPopup, PopupHandler> PopUpCommandMapper = new(ElementCommandMapper)
{
[nameof(IPopup.OnClosed)] = MapOnClosed,
#if !(IOS || MACCATALYST)
[nameof(IPopup.OnOpened)] = MapOnOpened,
[nameof(IPopup.OnClosed)] = MapOnClosed,
#endif
[nameof(IPopup.OnDismissedByTappingOutsideOfPopup)] = MapOnDismissedByTappingOutsideOfPopup
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ static PageHandler CreatePageHandler(IPopup virtualView)
/// <param name="result">We don't need to provide the result parameter here.</param>
public static void MapOnClosed(PopupHandler handler, IPopup view, object? result)
{
PopupHandler.MapOnClosed(handler, view, result);

var parent = view.Parent as Element;
if (parent is not null)
{
Expand Down

0 comments on commit 4d1d049

Please sign in to comment.