-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix crash in Islands when opening Flyout without a target #8300
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
Fix crash in Islands when opening Flyout without a target #8300
Conversation
|
@lyahdav we have a thread with you guys about whether we'd use the root tag from the native ui manager, but I'm not sure if this particular PR should wait until we have a resolution to that discussion. Let me know if this is ready to merge from your perspective. |
|
It can wait until we have resolution there since it could affect this change too. Should I close it for now then? |
|
FYI - this change is superseded by #8327 |
| // // XamlRoot added in 19H1 | ||
| if (Is19H1OrHigher()) { | ||
| if (auto xamlRoot = React::XamlUIService::GetXamlRoot(GetViewManager()->GetReactContext().Properties())) { | ||
| m_targetElement = xamlRoot.Content().try_as<xaml::FrameworkElement>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we closed this PR too eagerly. I solved a slightly different issue. We still need to set the target element from the XamlRoot for XAML Islands. @lyahdav - could you re-open this one?
Co-authored-by: Chris Glein <26607885+chrisglein@users.noreply.github.com>
Fixes #6714.
Before:
before.mov
After:
after.mov
Microsoft Reviewers: Open in CodeFlow