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 believe there is an issue with getPosition fucntion which is used to update tooltip position when it's outside the client widnow.
There are situations with floating tooltip (e.g. when we move cursor to the bottom of the page) when it cannot be displayed, so it tries to calculate a new desiredPlace and rerenders the component, but after rerendering getPosition finds out, that a previously calculated desiredPlace doesn't allow to render tooltip inside the client window, so it calculates a new one, which turns out to be the one we started with. It starts switching back and forth and "maximum update depth exceeded" error occurs.
To demostrate this, I added a pair console.logs inside getPosition and moved the cursor over tooltiped element:
This is what I got in my console just right before "Maximum update depth exceeded" error:
The text was updated successfully, but these errors were encountered:
Issue still exists, it was returned after fix in #574
And in my case I see the problem, when based on position we add some extra styling to tooltip, i.e. left or top borders. So it goes into loop when trying to "updatePosition".
I believe there is an issue with
getPosition
fucntion which is used to update tooltip position when it's outside the client widnow.There are situations with floating tooltip (e.g. when we move cursor to the bottom of the page) when it cannot be displayed, so it tries to calculate a new
desiredPlace
and rerenders the component, but after rerenderinggetPosition
finds out, that a previously calculateddesiredPlace
doesn't allow to render tooltip inside the client window, so it calculates a new one, which turns out to be the one we started with. It starts switching back and forth and "maximum update depth exceeded" error occurs.To demostrate this, I added a pair


console.log
s insidegetPosition
and moved the cursor over tooltiped element:This is what I got in my console just right before "Maximum update depth exceeded" error:
The text was updated successfully, but these errors were encountered: