mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 00:20:04 +01:00
[DevTools] Only inspect elements on left mouseclick (#34361)
This commit is contained in:
parent
b1b0955f2b
commit
6a58b80020
|
|
@ -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'},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user