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
However, if passing a ref to the overlay, it stops working (overlay does not render)
// assuming overlay comes as a variable prop from somewhere elseconstref=useRef(null)<Tooltipoverlay={<divref={ref}>{overlay}</div>}trigger={['hover']}><span>Hover me!</span></Tooltip>
This is a simplification of the issue I'm currently having. Just removing the ref like this
// assuming overlay comes as a variable prop from somewhere else<Tooltipoverlay={<div>{overlay}</div>}trigger={['hover']}><span>Hover me!</span></Tooltip>
works
The text was updated successfully, but these errors were encountered:
I think I can close this issue. The problem was that there was an event that was fired once the overlay was rendering, that was forcing the tooltip to disable. It was related to facebook/react#20636 and facebook/react#20863 - I wasn't expecting the events to be fired at the same moment they were rendering, so that's why I thought it was a problem on the tooltip. Closing!
I have an overlay, say
if I use it as-is, it works
However, if passing a ref to the overlay, it stops working (overlay does not render)
This is a simplification of the issue I'm currently having. Just removing the ref like this
works
The text was updated successfully, but these errors were encountered: