diff options
author | George Goldberg <george@gberg.me> | 2017-03-09 19:41:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 19:41:42 +0000 |
commit | d79c40f3307536fc734c135c26032486334657ea (patch) | |
tree | 36a440140312f499d93da6a9a151b8bfbf2058e5 /webapp/components | |
parent | 270ac113654d17cabf4a92d48de4ca4a9de65c46 (diff) | |
download | chat-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/components')
-rw-r--r-- | webapp/components/create_comment.jsx | 2 |
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); |