-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Area: FocusArea: PaperArea: ScrollViewOld ArchitectureBroad category for issues that apply to the RN "old" architecture of Cxx Modules + PaperBroad category for issues that apply to the RN "old" architecture of Cxx Modules + PaperPartner: MicrosoftWorkstream: Component ParityClose the parity gap between RNW and RN for core RN components and their supporting APIs.Close the parity gap between RNW and RN for core RN components and their supporting APIs.bug
Milestone
Description
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: 571e6e6
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
- Within a scrollview, create a list of focusable items.
- Render the scrollview so that some items are scrolled out of view.
- Call ref.focus() on any out-of-view item.
Expected Results
Scrollview should scroll to newly focused element.
CLI version
9.5.1
Environment
System:
OS: Windows 11 10.0.22631
CPU: (20) x64 Intel(R) Core(TM) i9-10900 CPU @ 2.80GHz
Memory: 25.67 GB / 63.71 GB
Binaries:
Node:
version: 18.16.1
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.19
path: ~\AppData\Roaming\npm\yarn.CMD
npm:
version: 9.5.1
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions:
- 10.0.18362.0
- 10.0.19041.0
- 10.0.22000.0
- 10.0.22621.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 16.11.34729.46 (Visual Studio Enterprise 2019)
- 17.9.34728.123 (Visual Studio Enterprise 2022)
Languages:
Java: Not Found
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.0.0
wanted: 18.0.0
react-native:
installed: 0.73.0
wanted: 0.73.0
react-native-windows:
installed: 0.73.3
wanted: 0.73.3
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not foundTarget 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
Metadata
Metadata
Assignees
Labels
Area: FocusArea: PaperArea: ScrollViewOld ArchitectureBroad category for issues that apply to the RN "old" architecture of Cxx Modules + PaperBroad category for issues that apply to the RN "old" architecture of Cxx Modules + PaperPartner: MicrosoftWorkstream: Component ParityClose the parity gap between RNW and RN for core RN components and their supporting APIs.Close the parity gap between RNW and RN for core RN components and their supporting APIs.bug