Skip to content

Commit 160ca6b

Browse files
committed
Fixed SfPopup does not show up after repeated openning issue.
1 parent 88cf41d commit 160ca6b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

maui/src/Popup/SfPopup/SfPopup.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,8 +2261,6 @@ void ApplyOverlayBackground()
22612261
{
22622262
_popupOverlayContainer.ApplyBackgroundColor(Colors.Transparent);
22632263
}
2264-
2265-
_popupOverlayContainer.IsVisible = true;
22662264
}
22672265
}
22682266

@@ -3156,6 +3154,9 @@ void SetParent()
31563154
if (_popupOverlayContainer.Parent is null || _popupView.Parent is null)
31573155
{
31583156
_popupOverlayContainer.Parent = page;
3157+
3158+
// Due to framework change in 9.0.50, popupView visibility was becoming false while setting parent. Framework PR URL(https://github.com/dotnet/maui/pull/20154).
3159+
_popupOverlayContainer.IsVisible = true;
31593160
_popupView.Parent = _popupOverlayContainer;
31603161
}
31613162
}

0 commit comments

Comments
 (0)