Skip to content

Commit e5fdb09

Browse files
Use correct page for PopupBlockedException
1 parent a1cb163 commit e5fdb09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommunityToolkit.Maui/Views/Popup/PopupPage.shared.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public async Task CloseAsync(PopupResult result, CancellationToken token = defau
9898
if (Navigation.ModalStack[^1] is IPageContainer<Page> { CurrentPage: PopupPage visiblePopupPageInCustomPageContainer }
9999
&& visiblePopupPageInCustomPageContainer.Content != Content)
100100
{
101-
throw new PopupBlockedException(popupPageToClose);
101+
throw new PopupBlockedException(visiblePopupPageInCustomPageContainer);
102102
}
103103
else if (Navigation.ModalStack[^1] is ContentPage currentVisibleModalPage
104104
&& currentVisibleModalPage.Content != Content)

0 commit comments

Comments
 (0)