Fix JS errors with RHS and flagged posts (#4771)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
e28dea6b11
Коммит
27aaa6dad3
@@ -450,7 +450,7 @@ export default class PostList extends React.Component {
|
||||
}
|
||||
} else if (this.refs.postlist.scrollHeight !== this.prevScrollHeight) {
|
||||
window.requestAnimationFrame(() => {
|
||||
if (this.jumpToPostNode) {
|
||||
if (this.jumpToPostNode && this.refs.postlist) {
|
||||
this.refs.postlist.scrollTop += (this.jumpToPostNode.offsetTop - this.prevOffsetTop);
|
||||
}
|
||||
});
|
||||
|
||||
Ссылка в новой задаче
Block a user