Merge pull request #1963 from matrix-org/revert-1961-dbkr/fix_devtools_exception

Revert "Fix exception when opening dev tools"
This commit is contained in:
David Baker 2018-06-14 10:52:53 +01:00 committed by GitHub
commit 2e53baaaff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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