summaryrefslogtreecommitdiffstats
path: root/webapp/components/suggestion/suggestion_box.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-04-04 00:22:09 -0400
committerCorey Hulen <corey@hulen.com>2017-04-03 21:22:09 -0700
commitc4fd04efb642b42b5829e25b4fc5d8b389fff8de (patch)
treeeaeb4c865ded795af441f982b75d307b49d6b7fb /webapp/components/suggestion/suggestion_box.jsx
parent5cd0d5b87eb282c8ae60b1a0b68dfb76b63d5a0e (diff)
downloadchat-c4fd04efb642b42b5829e25b4fc5d8b389fff8de.tar.gz
chat-c4fd04efb642b42b5829e25b4fc5d8b389fff8de.tar.bz2
chat-c4fd04efb642b42b5829e25b4fc5d8b389fff8de.zip
Fixed channel autocomplete flickering (#5961)
Diffstat (limited to 'webapp/components/suggestion/suggestion_box.jsx')
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx
index 2ac842846..e6179d5e5 100644
--- a/webapp/components/suggestion/suggestion_box.jsx
+++ b/webapp/components/suggestion/suggestion_box.jsx
@@ -185,8 +185,13 @@ export default class SuggestionBox extends React.Component {
}
handlePretextChanged(pretext) {
+ let handled = false;
for (const provider of this.props.providers) {
- provider.handlePretextChanged(this.suggestionId, pretext);
+ handled = provider.handlePretextChanged(this.suggestionId, pretext) || handled;
+ }
+
+ if (!handled) {
+ SuggestionStore.clearSuggestions(this.suggestionId);
}
}