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 344b3ec
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit 344b3ec

Please sign in to comment.