Fixed autocomplete not working when not at the start of the textbox (#4532)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6615db7e85
Коммит
2f488b13c7
@@ -121,7 +121,7 @@ class SuggestionStore extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addSuggestions(id, terms, items, component, matchedPretext) {
|
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
|
// These suggestions are out of date since the pretext has changed
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user