Fixed autocomplete not working when not at the start of the textbox (#4532)

Этот коммит содержится в:
Harrison Healey
2016-11-11 08:29:58 -05:00
коммит произвёл GitHub
родитель 6615db7e85
Коммит 2f488b13c7

Просмотреть файл

@@ -121,7 +121,7 @@ class SuggestionStore extends EventEmitter {
}
addSuggestions(id, terms, items, component, matchedPretext) {
if (this.getPretext(id) !== matchedPretext) {
if (!this.getPretext(id).endsWith(matchedPretext)) {
// These suggestions are out of date since the pretext has changed
return;
}