diff --git a/core/misc/autocomplete.js b/core/misc/autocomplete.js index 2181fda..a530de9 100644 --- a/core/misc/autocomplete.js +++ b/core/misc/autocomplete.js @@ -87,9 +87,10 @@ function showSuggestions(suggestions) { var tagged = autocomplete.splitValues(request.term); for (var i = 0, il = tagged.length; i < il; i++) { - var index = suggestions.indexOf(tagged[i]); - if (index >= 0) { - suggestions.splice(index, 1); + for (var j = 0; j < suggestions.length; j++) { + if (suggestions[j].value == tagged[i]) { + suggestions.splice(j, 1); + } } } response(suggestions);