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

This commit is contained in:
Sebastian "Sebbie" Silbermann 2025-09-02 12:40:54 +02:00 committed by GitHub
parent b1b0955f2b
commit 6a58b80020
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,8 +80,8 @@ export default function Element({data, index, style}: Props): React.Node {
};
// $FlowFixMe[missing-local-annot]
const handleClick = ({metaKey}) => {
if (id !== null) {
const handleClick = ({metaKey, button}) => {
if (id !== null && button === 0) {
logEvent({
event_name: 'select-element',
metadata: {source: 'click-element'},