Skip to content

Commit

Permalink
Stop listening resize on unmount
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Dec 27, 2017
1 parent 3a4ba37 commit 4ccf3d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/WindowScroller/WindowScroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ export default class WindowScroller extends React.PureComponent<Props, State> {
componentWillUnmount() {
const scrollElement = this.props.scrollElement;
if (scrollElement) {
unregisterScrollListener(this, scrollElement);
this._unregisterResizeListener(scrollElement);
}

Expand Down

0 comments on commit 4ccf3d5

Please sign in to comment.