From d79c40f3307536fc734c135c26032486334657ea Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Thu, 9 Mar 2017 19:41:42 +0000 Subject: PLT-5772: Use standardised javascript method instead of Chrome-only one. (#5708) --- webapp/components/create_comment.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-1-g7c22