Skip to content

Commit 313989e

Browse files
committed
3.1.6
1 parent 5131030 commit 313989e

File tree

4 files changed

+14
-8
lines changed

4 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Change Log
22

3+
### 3.1.6 (2016/08/19 02:07 +00:00)
4+
- [#181](https://github.com/wwayne/react-tooltip/pull/181) Judge if the component has been mounted mount in getContent #180 (@wwayne)
5+
- [#179](https://github.com/wwayne/react-tooltip/pull/179) Add bower.json (@mikkopiu)
6+
37
### 3.1.5 (2016/08/04 10:43 +00:00)
48
- [#176](https://github.com/wwayne/react-tooltip/pull/176) Support ReactTooltip.show() #47 (@wwayne)
59
- [#174](https://github.com/wwayne/react-tooltip/pull/174) Factor transform in css into position calculation #152 (@wwayne)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-tooltip",
3-
"version": "3.1.5",
3+
"version": "3.1.6",
44
"description": "react tooltip component",
55
"main": "dist/index.js",
66
"scripts": {

standalone/react-tooltip.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -599,12 +599,14 @@ var ReactTooltip = (0, _staticMethods2.default)(_class = (0, _windowListener2.de
599599

600600
if (getContent && Array.isArray(getContent)) {
601601
_this5.intervalUpdateContent = setInterval(function () {
602-
var getContent = _this5.props.getContent;
603-
604-
var placeholder = (0, _getTipContent2.default)(originTooltip, getContent[0](), isMultiline);
605-
_this5.setState({
606-
placeholder: placeholder
607-
});
602+
if (_this5.mount) {
603+
var _getContent = _this5.props.getContent;
604+
605+
var _placeholder = (0, _getTipContent2.default)(originTooltip, _getContent[0](), isMultiline);
606+
_this5.setState({
607+
placeholder: _placeholder
608+
});
609+
}
608610
}, getContent[1]);
609611
}
610612
});

standalone/react-tooltip.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)