diff --git a/MPowerKit.Navigation.Popups/MPowerKit.Navigation.Popups.csproj b/MPowerKit.Navigation.Popups/MPowerKit.Navigation.Popups.csproj index 37a7f5d..16748b1 100644 --- a/MPowerKit.Navigation.Popups/MPowerKit.Navigation.Popups.csproj +++ b/MPowerKit.Navigation.Popups/MPowerKit.Navigation.Popups.csproj @@ -17,7 +17,7 @@ True MPowerKit.Navigation.Popups - 1.3.0 + 1.3.0.1 MPowerKit,Alex Dobrynin .NET MAUI MVVM navigation framework. It supports regular/modal navigation, opening/closing windows, regions, popups MPowerKit diff --git a/MPowerKit.Navigation.Popups/PopupNavigationService.cs b/MPowerKit.Navigation.Popups/PopupNavigationService.cs index ff20fa6..e35d42f 100644 --- a/MPowerKit.Navigation.Popups/PopupNavigationService.cs +++ b/MPowerKit.Navigation.Popups/PopupNavigationService.cs @@ -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 { } } @@ -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 { } };