Fixed losing suggestion selection when entering additional characters
Этот коммит содержится в:
@@ -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();
|
||||
|
||||
Ссылка в новой задаче
Block a user