Skip to content

Commit

Permalink
PLT-5772: Use standardised javascript method instead of Chrome-only o…
Browse files Browse the repository at this point in the history
…ne. (#5708)
  • Loading branch information
grundleborg committed Mar 9, 2017
1 parent 270ac11 commit d79c40f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/components/create_comment.jsx
Expand Up @@ -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);

Expand Down

0 comments on commit d79c40f

Please sign in to comment.