Merge remote-tracking branch 'origin/develop' into develop

pull/21833/head
Weblate 2018-06-14 08:45:24 +00:00
commit 438dd00fe7
1 changed files with 4 additions and 2 deletions

View File

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