diff --git a/app/assets/javascripts/discourse/components/d-editor.js.es6 b/app/assets/javascripts/discourse/components/d-editor.js.es6 index 26d48d9b582..d320767144c 100644 --- a/app/assets/javascripts/discourse/components/d-editor.js.es6 +++ b/app/assets/javascripts/discourse/components/d-editor.js.es6 @@ -345,6 +345,9 @@ export default Ember.Component.extend({ return obj.text; }, dataSource(term) { + if (term.match(/\s/)) { + return null; + } return searchCategoryTag(term, siteSettings); }, triggerRule(textarea, opts) {