Trying pointer-events: none;
inside and outside of an <svg>
.
In the above visualization the bars labeled A
have their pointer-events set to none, so they don't emit any mouse events. All of the bars have event listeners that would change their background color if triggered by a mouseover.
Built with blockbuilder.org
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js