add comment
This commit is contained in:
parent
3d8f612ca0
commit
a028420dc4
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ class ToolTip extends React.PureComponent<Props> {
|
|||
const { direction } = this.state;
|
||||
const visibility = this.getVisibility();
|
||||
|
||||
// Invert direction if tooltip is outside viewport bounds
|
||||
if (!visibility[direction]) {
|
||||
this.invertDirection();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue