Skip to content

Commit

Permalink
clearing delayShowLoop-Timeout when component will unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
dsumer committed Jan 20, 2016
1 parent b4c38df commit 80473b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/react-tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ var ReactTooltip = (function (_Component) {
};

ReactTooltip.prototype.componentWillUnmount = function componentWillUnmount() {
clearTimeout(this.delayShowLoop);
this.unbindListener();
this.removeScrollListener();
this.mount = false;
Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export default class ReactTooltip extends Component {
}

componentWillUnmount () {
clearTimeout(this.delayShowLoop)
this.unbindListener()
this.removeScrollListener()
this.mount = false
Expand Down

0 comments on commit 80473b9

Please sign in to comment.