0
0
Fork 0

Fix updates being hidden behind pending items on unmounted components (#11898)

This commit is contained in:
Eugen Rochko 2019-09-21 09:12:13 +02:00 committed by GitHub
parent a90243a712
commit ba0de8fb68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 4 deletions

View file

@ -199,7 +199,12 @@ export default class ScrollableList extends PureComponent {
this.clearMouseIdleTimer();
this.detachScrollListener();
this.detachIntersectionObserver();
detachFullscreenListener(this.onFullScreenChange);
if (this.props.onScrollToTop) {
this.props.onScrollToTop();
}
}
onFullScreenChange = () => {