mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-24 23:34:52 +08:00
PLT-5772: Use standardised javascript method instead of Chrome-only one. (#5708)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user