mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-22 06:51:21 +02:00
Revert "Fix exception when opening dev tools"
This commit is contained in:
parent
5804040a9b
commit
666d469222
@ -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…
x
Reference in New Issue
Block a user