Skip to content

Commit

Permalink
Throw exceptions for Navigations when ConfirmNavigation is false
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmoud Ali committed Oct 1, 2019
1 parent 0c0b5b2 commit 4f0fccb
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -694,7 +694,9 @@ protected static async Task DoNavigateAction(Page fromPage, string toSegment, Pa

var canNavigate = await PageUtilities.CanNavigateAsync(fromPage, segmentParameters);
if (!canNavigate)
return;
{
throw new NavigationException(NavigationException.IConfirmNavigationReturnedFalse, toPage);
}

await OnInitializedAsync(toPage, segmentParameters);

Expand Down

0 comments on commit 4f0fccb

Please sign in to comment.