Skip to content

Commit e2f183b

Browse files
Update SfPopup.cs
1 parent fe5edac commit e2f183b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

maui/src/Popup/SfPopup/SfPopup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3155,11 +3155,11 @@ void SetParent()
31553155
{
31563156
_popupOverlayContainer.Parent = page;
31573157

3158-
// The issue occurs due to framework changes in version 9.0.50 [https://github.com/dotnet/maui/pull/20154].
3159-
// We will set _popupOverlayContainer visibility to false after dismissing the popup.
3160-
// We will set _popupOverlayContainer as the parent to popupView on display.
3158+
// _popupOverlayContainer visibility is set to false after dismissing the popup.
3159+
// _popupOverlayContainer will be set as the parent to popupView here from DisplayPopup().
31613160
// Due to the framework changes, 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.
3162-
// We will set the visibility of _popupOverlayContainer to true in a later section and _popupViewvisibility will still remains false.
3161+
// _popupOverlayContainer visibility is set to true in a later section, but _popupView visibility will still remain false.
3162+
// causes popup to appear blank for second time.
31633163
_popupOverlayContainer.IsVisible = true;
31643164
_popupView.Parent = _popupOverlayContainer;
31653165
}

0 commit comments

Comments
 (0)