Skip to content

Commit

Permalink
fix[devtools/tree/element]: onClick -> onMouseDown to handle first cl…
Browse files Browse the repository at this point in the history
…ick correctly
  • Loading branch information
hoxyq committed Mar 4, 2024
1 parent 034130c commit af4b38e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function Element({data, index, style}: Props): React.Node {
className={className}
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
onClick={handleClick}
onMouseDown={handleClick}
onDoubleClick={handleDoubleClick}
style={style}
data-testname="ComponentTreeListItem"
Expand Down

0 comments on commit af4b38e

Please sign in to comment.