diff --git a/src/components/views/rooms/MessageComposer.js b/src/components/views/rooms/MessageComposer.js index 53253376c9..059cafd311 100644 --- a/src/components/views/rooms/MessageComposer.js +++ b/src/components/views/rooms/MessageComposer.js @@ -212,8 +212,8 @@ module.exports = React.createClass({ textarea.setSelectionRange(left.length, left.length); } else { - this.refs.textarea.value = payload.displayname + ": "; - this.refs.textarea.focus(); + textarea.value = payload.displayname + ": "; + textarea.focus(); } break; }