We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 045e39a + f9d7ffa commit 5131030Copy full SHA for 5131030
src/index.js
@@ -249,11 +249,13 @@ class ReactTooltip extends Component {
249
250
if (getContent && Array.isArray(getContent)) {
251
this.intervalUpdateContent = setInterval(() => {
252
- const {getContent} = this.props
253
- const placeholder = getTipContent(originTooltip, getContent[0](), isMultiline)
254
- this.setState({
255
- placeholder
256
- })
+ if (this.mount) {
+ const {getContent} = this.props
+ const placeholder = getTipContent(originTooltip, getContent[0](), isMultiline)
+ this.setState({
+ placeholder
257
+ })
258
+ }
259
}, getContent[1])
260
}
261
})
0 commit comments