Skip to content

Conversation

sebmarkbage
Copy link
Collaborator

We override Cmd+F to jump to our search input instead of searching through the HTML. This is ofc critical since our view virtualized.

However, Chrome DevTools installs its own listener on the document as well (in the bubble phase) so if we prevent it at the document level it's too late and it ends up stealing the focus instead. If we instead listen at the documentElement it works as intended.

@sebmarkbage sebmarkbage requested review from eps1lon and hoxyq October 4, 2025 16:16
@meta-cla meta-cla bot added the CLA Signed label Oct 4, 2025
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Oct 4, 2025
@hoxyq hoxyq merged commit 0e79784 into facebook:main Oct 5, 2025
240 of 241 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants