You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RNTester app. I am adding a test page to demonstrate the issue.
I have repro on 0.66 in my environment -- but I also repro on against main in the tester app.
Steps to reproduce the bug
Open RNTester app (macOS)
Click on "Focus on Mount"
Observe
Expected Behavior
Based on how the test page is written, the component should be focused.
Actual Behavior
It isn't focused.
Reproducible Demo
See repro instructions for demo in tester app. I will be adding a page to the tester app after creating this issue.
Additional context
reactFocusIsNeeded is never called for a plain RCTView
focus state is tracked on a per-view basis; should ideally be per-window, perhaps simply tracking it globally is sufficient as well. It should not be tracked per-view, because only one can ultimately win (the last one -- assuming it also didn't give up on focus while it was "winning").
The text was updated successfully, but these errors were encountered:
Going to re-open this issue as a "potentially upstream able fix" kinda issue. Will revisit once we've let our fix make it's way downstream and has had time to be tested/verified more
Environment
Steps to reproduce the bug
Expected Behavior
Based on how the test page is written, the component should be focused.
Actual Behavior
It isn't focused.
Reproducible Demo
See repro instructions for demo in tester app. I will be adding a page to the tester app after creating this issue.
Additional context
The text was updated successfully, but these errors were encountered: