score:1

this is the same issue like this: svganimatedstring missing method indexof

i have same problem without using d3. i'm using only pure svg and appending it into dom with angularjs controller. problem isn't in d3. you can fix this problem with adding return false value into jquery click event handler on elements that contains link.

part of my svg:

<g id="1" class="node">
<a xlink:title="title">
<polygon fill="#cccccc" stroke="#cccccc" points="25,-434 25,-457 98,-457 98,-434 25,-434"></polygon>
<polygon fill="none" stroke="black" points="25,-434 25,-457 98,-457 98,-434 25,-434"></polygon>
<text text-anchor="start" x="29.5" y="-442.3" font-family="arial" font-size="14.00">title</text>
<polygon fill="transparent" stroke="black" points="25,-412 25,-434 98,-434 98,-412 25,-412"></polygon>
<text text-anchor="start" x="37" y="-419.8" font-family="arial" font-size="14.00">title</text>
</a>
</g>

jquery overloading method:

$('g.node').click(function (element) {
   return false;
});

hope this helps...


Related Query

More Query from same tag