diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index e54ddd6787..d8ad9930c8 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -1046,6 +1046,12 @@ export default class MessageComposerInput extends React.Component { return change.insertText('\n'); } + if (this.autocomplete.countCompletions() > 0) { + this.autocomplete.hide(); + ev.preventDefault(); + return true; + } + const editorState = this.state.editorState; const lastBlock = editorState.blocks.last();