Open devinus opened 8 years ago
👍 I am experiencing this using callback based autocomplete
I have also experienced this issue, I resolved by returning only the post suffix options so the autocomplete would function correctly.
for example
function autocompleteResponse(input, cb) {
// Autocomplete options logic...
return cb([
"b",
"boo",
"a",
"c"
]);
}
There is also a bug relating to when the user inputs $ foo/b
with the given options of ["baz", "bang"]
in that the autocomplete resolution craps out a little and removes the prefix foo
from the result.
I have made a pull request to get this fixed, as well as some minor related ;)
This still appears to be a problem specifically if the auto-complete returns a single item that has a slash in it.
Using these options:
['a/b', 'a/boo', 'b/a', 'b/c']
It wont autocomplete the whole string and it's just funky in general. Not how I would expect autocomplete to work.