Clear emoji suggestion list if there no matches (#4290)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
234958e007
Коммит
254cefee1a
@@ -90,8 +90,8 @@ export default class EmoticonProvider {
|
|||||||
|
|
||||||
const terms = matched.map((emoticon) => ':' + emoticon.name + ':');
|
const terms = matched.map((emoticon) => ':' + emoticon.name + ':');
|
||||||
|
|
||||||
|
SuggestionStore.clearSuggestions(suggestionId);
|
||||||
if (terms.length > 0) {
|
if (terms.length > 0) {
|
||||||
SuggestionStore.clearSuggestions(suggestionId);
|
|
||||||
SuggestionStore.addSuggestions(suggestionId, terms, matched, EmoticonSuggestion, text);
|
SuggestionStore.addSuggestions(suggestionId, terms, matched, EmoticonSuggestion, text);
|
||||||
|
|
||||||
hasSuggestions = true;
|
hasSuggestions = true;
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user