Fixed losing suggestion selection when entering additional characters

Этот коммит содержится в:
hmhealey
2015-11-27 10:38:35 -05:00
родитель 956d460b10
Коммит 4845067582

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

@@ -93,6 +93,11 @@ class SuggestionStore extends EventEmitter {
suggestion.terms = [];
suggestion.items = [];
suggestion.components = [];
}
clearSelection(id) {
const suggestion = this.suggestions.get(id);
suggestion.selection = '';
}
@@ -237,10 +242,11 @@ class SuggestionStore extends EventEmitter {
this.setPretext(id, '');
this.clearSuggestions(id);
this.clearSelection(id);
this.emitSuggestionsChanged(id);
break;
}
}
}
export default new SuggestionStore();
export default new SuggestionStore();