diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-04-27 10:58:15 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2017-04-27 07:58:15 -0700 |
commit | ad701900ef8a7a53bc91732195086ca6042fd614 (patch) | |
tree | 971d9204b5c5815e45cfa8750a3b106838b2fb9b /webapp/components | |
parent | 5a60ea0d756531fef4e6e94be1377c10a7022260 (diff) | |
download | chat-ad701900ef8a7a53bc91732195086ca6042fd614.tar.gz chat-ad701900ef8a7a53bc91732195086ca6042fd614.tar.bz2 chat-ad701900ef8a7a53bc91732195086ca6042fd614.zip |
Fix mouse selection on channel switcher (#6244)
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/suggestion/suggestion_box.jsx | 3 |
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; } |