mirror of https://github.com/vector-im/riot-web
Merge pull request #1961 from matrix-org/dbkr/fix_devtools_exception
Fix exception when opening dev toolspull/21833/head
commit
bb99950216
|
@ -244,12 +244,14 @@ export default class MessageComposerInput extends React.Component {
|
||||||
|
|
||||||
let editorState = null;
|
let editorState = null;
|
||||||
if (contentState) {
|
if (contentState) {
|
||||||
editorState = EditorState.createWithContent(contentState, compositeDecorator);
|
editorState = EditorState.moveFocusToEnd(
|
||||||
|
EditorState.createWithContent(contentState, compositeDecorator)
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
editorState = EditorState.createEmpty(compositeDecorator);
|
editorState = EditorState.createEmpty(compositeDecorator);
|
||||||
}
|
}
|
||||||
|
|
||||||
return EditorState.moveFocusToEnd(editorState);
|
return editorState;
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
|
|
Loading…
Reference in New Issue