Fix mouse selection on channel switcher (#6244)

Этот коммит содержится в:
Joram Wilander
2017-04-27 10:58:15 -04:00
коммит произвёл Corey Hulen
родитель 5a60ea0d75
Коммит ad701900ef

Просмотреть файл

@@ -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;
}