Skip to content

Commit

Permalink
fixed closing of the popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Dobrynin committed Nov 5, 2024
1 parent 2adb957 commit bc9d6bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<Title>MPowerKit.Navigation.Popups</Title>
<Version>1.3.0</Version>
<Version>1.3.0.1</Version>
<Authors>MPowerKit,Alex Dobrynin</Authors>
<Description>.NET MAUI MVVM navigation framework. It supports regular/modal navigation, opening/closing windows, regions, popups</Description>
<Copyright>MPowerKit</Copyright>
Expand Down
4 changes: 2 additions & 2 deletions MPowerKit.Navigation.Popups/PopupNavigationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ async void Page_BackgroundClicked(object? sender, RoutedEventArgs e)

e.Handled = true;

closeAction?.Invoke(new Confirmation(false, null));
page.BackgroundClicked -= Page_BackgroundClicked;
await this.HidePopupAsync(page, true);
closeAction?.Invoke(new Confirmation(false, null));
}
catch { }
}
Expand All @@ -90,8 +90,8 @@ async void Page_BackgroundClicked(object? sender, RoutedEventArgs e)
{
try
{
closeAction?.Invoke(close.Confirmation);
await this.HidePopupAsync(page, close.Animated);
closeAction?.Invoke(close.Confirmation);
}
catch { }
};
Expand Down

0 comments on commit bc9d6bd

Please sign in to comment.