diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-04-04 00:22:09 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-04-03 21:22:09 -0700 |
commit | c4fd04efb642b42b5829e25b4fc5d8b389fff8de (patch) | |
tree | eaeb4c865ded795af441f982b75d307b49d6b7fb /webapp/stores/suggestion_store.jsx | |
parent | 5cd0d5b87eb282c8ae60b1a0b68dfb76b63d5a0e (diff) | |
download | chat-c4fd04efb642b42b5829e25b4fc5d8b389fff8de.tar.gz chat-c4fd04efb642b42b5829e25b4fc5d8b389fff8de.tar.bz2 chat-c4fd04efb642b42b5829e25b4fc5d8b389fff8de.zip |
Fixed channel autocomplete flickering (#5961)
Diffstat (limited to 'webapp/stores/suggestion_store.jsx')
-rw-r--r-- | webapp/stores/suggestion_store.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/stores/suggestion_store.jsx b/webapp/stores/suggestion_store.jsx index a0cd88370..5a8ea3006 100644 --- a/webapp/stores/suggestion_store.jsx +++ b/webapp/stores/suggestion_store.jsx @@ -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); } |