Fix autocomplete not clearing suggestions properly (#4276)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
530b5f5011
Коммит
86aa979310
@@ -222,7 +222,8 @@ class SuggestionStore extends EventEmitter {
|
||||
|
||||
switch (type) {
|
||||
case ActionTypes.SUGGESTION_PRETEXT_CHANGED:
|
||||
if (other.pretext === '') {
|
||||
// Clear the suggestions if the pretext is empty or has whitespace
|
||||
if (other.pretext === '' || (/\s/g.test(other.pretext))) {
|
||||
this.clearSuggestions(id);
|
||||
}
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user