Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions maui/src/Popup/SfPopup/SfPopup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2261,8 +2261,6 @@ void ApplyOverlayBackground()
{
_popupOverlayContainer.ApplyBackgroundColor(Colors.Transparent);
}

_popupOverlayContainer.IsVisible = true;
}
}

Expand Down Expand Up @@ -3156,6 +3154,14 @@ void SetParent()
if (_popupOverlayContainer.Parent is null || _popupView.Parent is null)
{
_popupOverlayContainer.Parent = page;

// _popupOverlayContainer visibility is set to false after dismissing the popup.
// _popupOverlayContainer will be set as the parent to popupView here from DisplayPopup().
// Due to Maui 9.0.50 changes [https://github.com/dotnet/maui/pull/20154],
// the IsVisible property of _popupView is set to false when reopening with the same instance of the popup, since _popupOverlayContainer visibility will now be false.
// _popupOverlayContainer visibility is set to true in a later section, but _popupView visibility will still remain false.
// causes popup to appear blank for second time.
_popupOverlayContainer.IsVisible = true;
_popupView.Parent = _popupOverlayContainer;
}
}
Expand Down