summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-03-09 19:41:42 +0000
committerGitHub <noreply@github.com>2017-03-09 19:41:42 +0000
commitd79c40f3307536fc734c135c26032486334657ea (patch)
tree36a440140312f499d93da6a9a151b8bfbf2058e5 /webapp
parent270ac113654d17cabf4a92d48de4ca4a9de65c46 (diff)
downloadchat-d79c40f3307536fc734c135c26032486334657ea.tar.gz
chat-d79c40f3307536fc734c135c26032486334657ea.tar.bz2
chat-d79c40f3307536fc734c135c26032486334657ea.zip
PLT-5772: Use standardised javascript method instead of Chrome-only one. (#5708)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/create_comment.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index c7dbd0717..96280bbc1 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -349,7 +349,7 @@ export default class CreateComment extends React.Component {
PostStore.storeCommentDraft(this.props.rootId, draft);
// Focus on preview if needed
- this.refs.preview.refs.container.scrollIntoViewIfNeeded();
+ this.refs.preview.refs.container.scrollIntoView();
const enableAddButton = this.handleEnableAddButton(draft.message, draft.fileInfos);