Fix updates being hidden behind pending items on unmounted components (#11898)
This commit is contained in:
1 parent
a90243a712
commit
ba0de8fb68
4 files changed
+33
-4
No files matched your search
@@ -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 = () => {
|
||||
|
||||
Reference in new issue
Block a user