You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the tooltip on an svg image, I got this error: "Warning: NaN is an invalid value for the left css style property."
The issue is that on svg type elements, the offsetHeight and offsetWidth is deprecated so it returns undefined. I tried swapping them with getBoundingClientRect().width and getBoundingClientRect().height but it isn't exactly the same and the tooltip wasn't placed where it should be.
Would be great if this could work with svgs as well. Thanks!
The text was updated successfully, but these errors were encountered:
When using the tooltip on an svg image, I got this error: "Warning:
NaN
is an invalid value for theleft
css style property."The issue is that on svg type elements, the offsetHeight and offsetWidth is deprecated so it returns undefined. I tried swapping them with getBoundingClientRect().width and getBoundingClientRect().height but it isn't exactly the same and the tooltip wasn't placed where it should be.
Would be great if this could work with svgs as well. Thanks!
The text was updated successfully, but these errors were encountered: