Open aaronvega-msft opened 2 months ago
We probably need to add code to call BringIntoView on the element - since programmatic focus doesn't appear to bring the element into view automatically.
Original change by Eric makes sense, although for your app reverting that with a patch is a fine workaround. Full fix would involve looking at what Andrew described above.
Problem Description
We have a list of focusable elements within a scrollview, and we call ref.focus() on an element to force scrollview to bring it into view. This worked fine until this change came in: https://github.com/microsoft/react-native-windows/commit/571e6e65fc47b361c326fe4916f5df4c78bf943b
The element still gets focus, but scrollview no longer brings it into view.
An engineer from the RNW team suggested I revert the change and it fixed the issue. Can we get a fix for this?
Steps To Reproduce
Expected Results
Scrollview should scroll to newly focused element.
CLI version
9.5.1
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