From ad701900ef8a7a53bc91732195086ca6042fd614 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Thu, 27 Apr 2017 10:58:15 -0400 Subject: [PATCH] Fix mouse selection on channel switcher (#6244) --- webapp/components/suggestion/suggestion_box.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/webapp/components/suggestion/suggestion_box.jsx b/webapp/components/suggestion/suggestion_box.jsx index 2c358b6933..f048a03de5 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; }