react-tooltip
react-tooltip copied to clipboard
in bodyMode search parents of current target for tooltips
Switching to bodyMode left our tooltips non functional, since in svg e.g. a textbox often is composed of a <g><rect/><text/></g>, but the tooltip should popup everywhere inside the g, e.g.
<g data-tip="my tip"><rect/><text/></g>
But body mode will currently search the data-tip in rect if you click on the box with no text or <text> if you click on text.
bodyListener should search from e.target the parent chain for data-tips.