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

This commit is contained in:
Weblate 2018-06-14 08:45:24 +00:00
commit 438dd00fe7

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() {