Skip to content

Commit

Permalink
fix(macOS): Null pointer opening popup
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Mar 14, 2021
1 parent 5089e05 commit b1a1c13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UI/UI/Xaml/Controls/Popup/Popup.macOS.cs
Expand Up @@ -169,8 +169,8 @@ private void EnsureForward()
PopupPanel.Layer.RemoveFromSuperLayer();
superlayer.AddSublayer(PopupPanel.Layer);
}
else
{
else if(PopupPanel.Superview != null)
{
var superview = PopupPanel.Superview;
PopupPanel.RemoveFromSuperview();
superview.AddSubview(PopupPanel);
Expand Down

0 comments on commit b1a1c13

Please sign in to comment.