FIX: don't trigger autocomplete for tags after space is entered

This commit is contained in:
Sam 2018-04-26 15:36:41 +10:00
parent a0cd54750c
commit 55179efdb9
1 changed files with 3 additions and 0 deletions

View File

@ -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) {