I am having an svg element on which I need to capture the mousedown
event.
Here is the code.
//code snippet...
<g onMouseDown={this.clickHandler}>
<circle ...></circle>
<text> </text>
</g>
Code for click handler is as simple as this.
clickHandler() {
alert("mouse down")
}
onMouseUp
and OnClick
are working fine, but not the onMouseDown
The same onMouseDown
event in working fine outside the SVG (I tried on Button)
Any Idea about the error.
React Version: 16.5.2