Commit 5c7591bc authored by Ryan Herbert's avatar Ryan Herbert Committed by Mathieu Giraud
Browse files

autocomplete.js fix tag duplicate filtering

Apparently returning the result of an indexOf in the filter callback
doesn't correctly evaluate to true or false... This seems to work
better.
parent 9554257b
Pipeline #8796 failed
......@@ -209,7 +209,7 @@ VidjilAutoComplete.prototype = {
if (res < 0) {
seen.push(elem.name);
}
return res;
return res < 0;
})
$input.atwho('load', at, loaded_data);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment