Fixed losing suggestion selection when entering additional characters
Этот коммит содержится в:
@@ -93,6 +93,11 @@ class SuggestionStore extends EventEmitter {
|
|||||||
suggestion.terms = [];
|
suggestion.terms = [];
|
||||||
suggestion.items = [];
|
suggestion.items = [];
|
||||||
suggestion.components = [];
|
suggestion.components = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
clearSelection(id) {
|
||||||
|
const suggestion = this.suggestions.get(id);
|
||||||
|
|
||||||
suggestion.selection = '';
|
suggestion.selection = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -237,10 +242,11 @@ class SuggestionStore extends EventEmitter {
|
|||||||
|
|
||||||
this.setPretext(id, '');
|
this.setPretext(id, '');
|
||||||
this.clearSuggestions(id);
|
this.clearSuggestions(id);
|
||||||
|
this.clearSelection(id);
|
||||||
this.emitSuggestionsChanged(id);
|
this.emitSuggestionsChanged(id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default new SuggestionStore();
|
export default new SuggestionStore();
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user