react-tooltip icon indicating copy to clipboard operation
react-tooltip copied to clipboard

in bodyMode search parents of current target for tooltips

Open idc-developer opened this issue 5 years ago • 0 comments

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.

idc-developer avatar Jan 15 '20 17:01 idc-developer