You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Revert "Fix exception when opening dev tools"
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user