Skip to content

Commit 903366b

Browse files
authored
[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.
1 parent 0fbb9b3 commit 903366b

File tree

1 file changed

+0
-2
lines changed
  • packages/react-devtools-shared/src/backend/views/Highlighter

1 file changed

+0
-2
lines changed

packages/react-devtools-shared/src/backend/views/Highlighter/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,6 @@ export default function setupHighlighter(
366366
// Don't pass the name explicitly.
367367
// It will be inferred from DOM tag and Fiber owner.
368368
showOverlay([target], null, agent, false);
369-
370-
selectElementForNode(target);
371369
}
372370

373371
function onPointerUp(event: MouseEvent) {

0 commit comments

Comments
 (0)