Skip to content

Commit

Permalink
Clear PopupFlyout target on flyout close
Browse files Browse the repository at this point in the history
  • Loading branch information
BAndysc committed Apr 22, 2024
1 parent edb66a7 commit 44fa44f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Avalonia.Controls/Flyouts/PopupFlyoutBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ protected virtual bool HideCore(bool canCancel = true)
{
Target.DetachedFromVisualTree -= PlacementTarget_DetachedFromVisualTree;
Target.KeyUp -= OnPlacementTargetOrPopupKeyUp;
Target = null;
}

OnClosed();
Expand Down
2 changes: 1 addition & 1 deletion src/Avalonia.Controls/Primitives/TextSelectorLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class TextSelectorLayer : Canvas
}

return null;
}
}

protected override Size MeasureOverride(Size availableSize)
{
Expand Down

0 comments on commit 44fa44f

Please sign in to comment.