From 4e0720db12ee7170ada7a8f63848683015a3012c Mon Sep 17 00:00:00 2001 From: Aviral Dasgupta Date: Fri, 10 Jun 2016 00:03:40 +0530 Subject: [PATCH] Fix MessageComposerInput.setLastTextEntry --- src/components/views/rooms/MessageComposerInput.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index 218fcdc707..129f048493 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -150,7 +150,7 @@ export default class MessageComposerInput extends React.Component { console.error(contentHTML); if (contentHTML) { const content = HTMLtoContentState(contentHTML); - component.setState({editorState: EditorState.createWithContent(content, getScopedDecorator(this.props))}); + component.setState({editorState: EditorState.createWithContent(content, getScopedDecorator(component.props))}); component.resizeInput(); } }