mirror of https://github.com/vector-im/riot-web
Merge pull request #1963 from matrix-org/revert-1961-dbkr/fix_devtools_exception
Revert "Fix exception when opening dev tools"pull/21833/head
commit
2e53baaaff
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue