[DevTools] Don't select on hover (#34860)
We should only persist a selection once you click. Currently, we persist the selection if you just hover which means you lose your selection immediately when just starting to inspect. That's not what Chrome Elements tab does - it selects on click.
Sebastian Markbåge committed
Oct 15, 2025 at 13:43 UTC
903366b8b1ee4206020492c6e8140645c0cb563e
1 file changed
-2
packages/react-devtools-shared/src/backend/views/Highlighter/index.js
-2
@@ -366,8 +366,6 @@ export default function setupHighlighter(
366
// Don't pass the name explicitly.
367
// It will be inferred from DOM tag and Fiber owner.
368
showOverlay([target], null, agent, false);
369
-
370
- selectElementForNode(target);
369
}
370
371
function onPointerUp(event: MouseEvent) {