Skip to content

Commit

Permalink
Clear PopupFlyout target on flyout close (#15466)
Browse files Browse the repository at this point in the history
* Clear PopupFlyout target on flyout close

* Clear Target after OnClose is called
  • Loading branch information
BAndysc authored and maxkatz6 committed Apr 25, 2024
1 parent 7e896ff commit 822fea5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Avalonia.Controls/Flyouts/PopupFlyoutBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ protected virtual bool HideCore(bool canCancel = true)

OnClosed();

Target = null;

return true;
}

Expand Down

0 comments on commit 822fea5

Please sign in to comment.