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

Trigger a handleMouseMove() call after title changes to recalculate position

Open danjm opened this issue 8 years ago • 0 comments

Currently, if the tooltip is fixed and the title changes dynamically, it can appear off-center if the title change also changes the width of the tooltip. For example:

tooltip-title-change-wrong

This PR corrects this behaviour by triggering a recalculation of the tooltips positions if the title changes. Now, it behaves like this:

tooltip-title-change-correct

danjm avatar Jan 30 '18 17:01 danjm