Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear Popup.PlacementTarget in PopupFlyout #15478

Closed

Conversation

BAndysc
Copy link
Contributor

@BAndysc BAndysc commented Apr 23, 2024

What does the pull request do?

Not only Target in PopupFlyoutBase has to be cleared, but also Popup.PlacementTarget. It shouldn't be a problem, because PlacementTarget is set in the very same line as Target, so I don't think it is necessary to keep this value just like it is not necessary to keep Target

What is the current behavior?

What is the updated/expected behavior with this PR?

How was the solution implemented (if it's not obvious)?

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

#15465

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0047594-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@@ -205,7 +205,7 @@ protected virtual bool HideCore(bool canCancel = true)

OnClosed();

Target = null;
Popup.PlacementTarget = Target = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay :)

@BAndysc BAndysc closed this Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants