@samitouri / QOS-React / commits / 6a58b80020

[DevTools] Only inspect elements on left mouseclick (#34361)

Sebastian "Sebbie" Silbermann committed Sep 2, 2025 at 12:40 UTC 6a58b80020457e2976e3139fb825ce5ed0030dd2
1 file changed +2 -2
packages/react-devtools-shared/src/devtools/views/Components/Element.js
+2 -2
@@ -80,8 +80,8 @@ export default function Element({data, index, style}: Props): React.Node {
80 };
81
82 // $FlowFixMe[missing-local-annot]
83 - const handleClick = ({metaKey}) => {
84 - if (id !== null) {
83 + const handleClick = ({metaKey, button}) => {
84 + if (id !== null && button === 0) {
85 logEvent({
86 event_name: 'select-element',
87 metadata: {source: 'click-element'},