-
Notifications
You must be signed in to change notification settings - Fork 742
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: Workaround non-UIElement UIViews in Grid layout #18470
Conversation
🤖 Your WebAssembly Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-18470/index.html |
🤖 Your Docs stage site is ready! Visit it here: https://unodocsprstaging.z13.web.core.windows.net/pr-18470/index.html |
@Mergifyio backport release/stable/5.5 |
@Mergifyio backport release/stable/5.4 |
✅ Backports have been created
|
✅ Backports have been created
|
The build 143618 found UI Test snapshots differences: Details
|
…5.5/pr-18470 fix: Workaround non-UIElement UIViews in Grid layout (backport #18470)
…5.4/pr-18470 fix: Workaround non-UIElement UIViews in Grid layout (backport #18470)
GitHub Issue (If applicable): closes #17997, closes #14013
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Focusing a text input on iOS causes the framework to temporarily add a non-UIElement child to the parent's
Grid
, which is then surfaced to theGrid
as anull
What is the new behavior?
No longer crashing. This is a workaround, ideally we would want to ensure that
Children
as aUIElementCollection
only reflects the actualUIElements
in theChildrenShadow
. This however means more complex logic to properly handle indexes, etc. This workaround seems to be sufficient for now to handle the cases we encountered. Created #18474 to track thisPR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.Other information
Internal Issue (If applicable):