Skip to content

Conversation

@lyahdav
Copy link
Contributor

@lyahdav lyahdav commented Jul 21, 2021

Fixes #6714.

Before:

before.mov

After:

after.mov
Microsoft Reviewers: Open in CodeFlow

@lyahdav lyahdav requested a review from a team as a code owner July 21, 2021 18:21
@asklar
Copy link
Member

asklar commented Jul 26, 2021

@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.

@lyahdav
Copy link
Contributor Author

lyahdav commented Jul 26, 2021

It can wait until we have resolution there since it could affect this change too. Should I close it for now then?

@rozele
Copy link
Contributor

rozele commented Jul 28, 2021

FYI - this change is superseded by #8327

@lyahdav lyahdav closed this Jul 28, 2021
// // XamlRoot added in 19H1
if (Is19H1OrHigher()) {
if (auto xamlRoot = React::XamlUIService::GetXamlRoot(GetViewManager()->GetReactContext().Properties())) {
m_targetElement = xamlRoot.Content().try_as<xaml::FrameworkElement>();
Copy link
Contributor

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?

@rozele rozele reopened this Aug 9, 2021
Co-authored-by: Chris Glein <26607885+chrisglein@users.noreply.github.com>
@NickGerleman NickGerleman merged commit 9bae787 into microsoft:main Oct 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flyout without target in Xaml Islands crashes app

5 participants