Open chrisglein opened 1 year ago
Seems like it would be fairly simply to just embed a ViewPanel as the top-level child of the Popup component. Have you also checked the Flyout component? I believe it may also have a 1 child assumption: https://github.com/microsoft/react-native-windows/blob/main/vnext/Microsoft.ReactNative/Views/FlyoutViewManager.cpp#L159
Problem Description
Point of failure (
index
is 1)Callstack
Steps To Reproduce
Here's the part of the code that produced this error:
There's a problem with this: Popup only expects 1 child, not a list of children. But this manifests as an assert instead of a clear error.
Expected Results
Not an assert (which in debug is just silently taking down the whole app - without attaching a debugger nothing is shown)
CLI version
error: unknown option '--version'
Environment
Target Platform Version
None
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response