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
I have one small improvement proposal of StatefulTooltip.
from nature of react, there is one case when this tooltip does not work as expected
imagine when u are using StatefulTooltip,
and component is created at moment, when mouse is already in place where tooltip will be rendered, but there is no mouse event fired, so we cannot see tooltip
there is easy way how to reproduce this problem:
go over your "tooltiped" element
-> tooltip is displayed, OK
press shortcut for refreshing page (cmd+r / f5 ...)
-> tooltip its not displayed
proposed solution:
calculate collision of Element.getBoundingClientRect and pointer position on didMount
The text was updated successfully, but these errors were encountered:
I have one small improvement proposal of StatefulTooltip.
from nature of react, there is one case when this tooltip does not work as expected
imagine when u are using StatefulTooltip,
and component is created at moment, when mouse is already in place where tooltip will be rendered, but there is no mouse event fired, so we cannot see tooltip
there is easy way how to reproduce this problem:
-> tooltip is displayed, OK
-> tooltip its not displayed
proposed solution:
calculate collision of Element.getBoundingClientRect and pointer position on didMount
The text was updated successfully, but these errors were encountered: