add comment

This commit is contained in:
btzr-io 2018-09-24 17:08:41 -06:00
parent 3d8f612ca0
commit a028420dc4

View file

@ -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();
}