summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-04-27 10:58:15 -0400
committerCorey Hulen <corey@hulen.com>2017-04-27 07:58:15 -0700
commitad701900ef8a7a53bc91732195086ca6042fd614 (patch)
tree971d9204b5c5815e45cfa8750a3b106838b2fb9b /webapp
parent5a60ea0d756531fef4e6e94be1377c10a7022260 (diff)
downloadchat-ad701900ef8a7a53bc91732195086ca6042fd614.tar.gz
chat-ad701900ef8a7a53bc91732195086ca6042fd614.tar.bz2
chat-ad701900ef8a7a53bc91732195086ca6042fd614.zip
Fix mouse selection on channel switcher (#6244)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/suggestion/suggestion_box.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx
index 2c358b693..f048a03de 100644
--- a/webapp/components/suggestion/suggestion_box.jsx
+++ b/webapp/components/suggestion/suggestion_box.jsx
@@ -139,9 +139,8 @@ export default class SuggestionBox extends React.Component {
if (this.props.onItemSelected) {
const items = SuggestionStore.getItems(this.suggestionId);
- const selection = SuggestionStore.getSelection(this.suggestionId);
for (const i of items) {
- if (i.name === selection) {
+ if (i.name === term) {
this.props.onItemSelected(i);
break;
}