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 I use the tool tip in my web app if the browser has not enough space for the tooltip then it will crash the current open tab . For example I have a side bar which has some data rows and I want to use tooltip for each item and position it right , It is working perfectly fine for the top position .
What should be happening?
it should adjust its position automatically when enough space is not available .
Steps to reproduce issue
...
...
Error message in console
paste error message with stacktrack here
Code
The text was updated successfully, but these errors were encountered:
When a tooltip or popover does not fit in the containing element, this causes the `PopperContent` component to get into an infinite loop of switching between `placement`s in its state. This is because we attempt to update `this.state.placement` everytime popper.js flips the placement to find a better fit and pass it back as the `placement` property to `ReactPopper`.
This is a problem because the `PopperContent` component has two sources of truth for its placement. One coming from its own `placement` property, and one coming from the internal data of `ReactPopper`.
This commit fixes the issue by using `PopperContent`'s `placement` property as the initial placement of the `ReactPopper` component and allowing `ReactPopper` to manage its own updates (i.e. if the popover needs to be flipped because there's not enough room for the specified placement.)
Fixes#1482Fixes#1488Fixes#1664
Tooltip
#8.0.1
umd/csj/es
#16.9.0
#4.x
What is happening?
When I use the tool tip in my web app if the browser has not enough space for the tooltip then it will crash the current open tab . For example I have a side bar which has some data rows and I want to use tooltip for each item and position it right , It is working perfectly fine for the top position .
What should be happening?
it should adjust its position automatically when enough space is not available .
Steps to reproduce issue
Error message in console
Code
The text was updated successfully, but these errors were encountered: