diff --git a/app/assets/javascripts/discourse/lib/autocomplete.js b/app/assets/javascripts/discourse/lib/autocomplete.js index 168c3c2e936..f439626b525 100644 --- a/app/assets/javascripts/discourse/lib/autocomplete.js +++ b/app/assets/javascripts/discourse/lib/autocomplete.js @@ -265,8 +265,7 @@ $.fn.autocomplete = function(options) { var prevChar = me.val().charAt(caretPosition - 1); if (!prevChar || /\s/.test(prevChar)) { completeStart = completeEnd = caretPosition; - var term = ""; - updateAutoComplete(options.dataSource(term)); + updateAutoComplete(options.dataSource("")); } } });