UX: makes emoji picker case insensitive (#10655)

This commit is contained in:
Joffrey JAFFEUX 2020-09-11 19:54:19 +02:00 committed by GitHub
parent 033cebf978
commit 07d7adb8b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -220,7 +220,9 @@ export default Component.extend({
results.innerHTML = "";
if (event.target.value) {
results.innerHTML = emojiSearch(event.target.value, { maxResults: 10 })
results.innerHTML = emojiSearch(event.target.value.toLowerCase(), {
maxResults: 10,
})
.map(this._replaceEmoji)
.join("");