Fixing scrollHeight javascript error (#4388)
Этот коммит содержится в:
коммит произвёл
Christopher Speller
родитель
6d3b3162b0
Коммит
9bae1f7e93
@@ -443,7 +443,9 @@ export default class PostList extends React.Component {
|
||||
|
||||
scrollToBottom() {
|
||||
this.animationFrameId = window.requestAnimationFrame(() => {
|
||||
this.refs.postlist.scrollTop = this.refs.postlist.scrollHeight;
|
||||
if (this.refs.postlist) {
|
||||
this.refs.postlist.scrollTop = this.refs.postlist.scrollHeight;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user