Skip to content

Commit 6a58b80

Browse files
authored
[DevTools] Only inspect elements on left mouseclick (#34361)
1 parent b1b0955 commit 6a58b80

File tree

1 file changed

+2
-2
lines changed
  • packages/react-devtools-shared/src/devtools/views/Components

1 file changed

+2
-2
lines changed

packages/react-devtools-shared/src/devtools/views/Components/Element.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export default function Element({data, index, style}: Props): React.Node {
8080
};
8181

8282
// $FlowFixMe[missing-local-annot]
83-
const handleClick = ({metaKey}) => {
84-
if (id !== null) {
83+
const handleClick = ({metaKey, button}) => {
84+
if (id !== null && button === 0) {
8585
logEvent({
8686
event_name: 'select-element',
8787
metadata: {source: 'click-element'},

0 commit comments

Comments
 (0)