Skip to content

Commit b21335c

Browse files
committed
Position tooltip on value change
The tooltip was not centered anymore after a value change (for example, localisation change). Triggering it again fixes it.
1 parent b21bbff commit b21335c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tooltip.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ let Tooltip = React.createClass({
2626
this._setTooltipPosition();
2727
},
2828

29+
componentWillReceiveProps() {
30+
this._setTooltipPosition();
31+
},
32+
2933
componentDidUpdate() {
3034
this._setRippleSize();
3135
},

0 commit comments

Comments
 (0)