Skip to content

Commit

Permalink
Focus traps are now deactivated when navigating from page (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
GisliSig authored Aug 5, 2020
1 parent 26ad624 commit 8b12182
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Blazored.Modal/BlazoredModal.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ private async void CancelModals(object sender, LocationChangedEventArgs e)
{
foreach (var modalReference in Modals)
{
await JSRuntime.InvokeVoidAsync("BlazoredModal.deactivateFocusTrap", modalReference.Id);
modalReference.Dismiss(ModalResult.Cancel());
}

Expand Down

0 comments on commit 8b12182

Please sign in to comment.