Revert "Fix exception when opening dev tools"

pull/21833/head
David Baker 2018-06-14 10:52:39 +01:00 committed by GitHub
parent 5804040a9b
commit 666d469222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -244,14 +244,12 @@ export default class MessageComposerInput extends React.Component {
let editorState = null;
if (contentState) {
editorState = EditorState.moveFocusToEnd(
EditorState.createWithContent(contentState, compositeDecorator)
);
editorState = EditorState.createWithContent(contentState, compositeDecorator);
} else {
editorState = EditorState.createEmpty(compositeDecorator);
}
return editorState;
return EditorState.moveFocusToEnd(editorState);
}
componentDidMount() {