Skip to content

Commit 9a3b9aa

Browse files
committed
chore: Clear value if not set anymore
1 parent 076fedb commit 9a3b9aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Uno.UI/UI/Xaml/Controls/Popup/Popup.WithPopupRoot.cs

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ partial void OnIsOpenChangedPartialNative(bool oldIsOpen, bool newIsOpen)
9595
{
9696
Canvas.SetZIndex(PopupPanel, Canvas.GetZIndex(this));
9797
}
98+
else
99+
{
100+
PopupPanel.ClearValue(Canvas.ZIndexProperty);
101+
}
98102

99103
// It's important for PopupPanel to be visible before the popup is opened so that
100104
// child controls can be IsFocusable, which depends on all ancestors (including PopupPanel)

0 commit comments

Comments
 (0)