score:2

Accepted answer

Turn off pointer events for your text element.

g.append('text') // button label
  .attr({"pointer-events": "none"})
  ...

Demo here


Related Query

More Query from same tag