Fixed channel autocomplete flickering (#5961)

Этот коммит содержится в:
Harrison Healey
2017-04-04 00:22:09 -04:00
коммит произвёл Corey Hulen
родитель 5cd0d5b87e
Коммит c4fd04efb6
7 изменённых файлов: 68 добавлений и 52 удалений

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

@@ -227,8 +227,8 @@ class SuggestionStore extends EventEmitter {
switch (type) {
case ActionTypes.SUGGESTION_PRETEXT_CHANGED:
// Clear the suggestions if the pretext is empty or has whitespace
if (other.pretext === '' || (/\s/g.test(other.pretext))) {
// Clear the suggestions if the pretext is empty or ends with whitespace
if (other.pretext === '') {
this.clearSuggestions(id);
}