SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[DevTools] Use documentElement to override cmd+F (#34734)

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.
S
Sebastian Markbåge committed
0e79784702927f1d1c6c212475e7c5141fa13a8a
Parent: a2329c1
Committed by GitHub <[email protected]> on 10/5/2025, 12:13:22 PM