forked from AkkomaGang/akkoma-fe
Merge branch 'fix/case--in-sensitive--emoji--search' into 'develop'
fix case in/sensitive emoji search See merge request pleroma/pleroma-fe!1237
This commit is contained in:
commit
0fee9a8fe7
1 changed files with 4 additions and 1 deletions
|
@ -8,7 +8,10 @@ const LOAD_EMOJI_BY = 60
|
||||||
const LOAD_EMOJI_MARGIN = 64
|
const LOAD_EMOJI_MARGIN = 64
|
||||||
|
|
||||||
const filterByKeyword = (list, keyword = '') => {
|
const filterByKeyword = (list, keyword = '') => {
|
||||||
return list.filter(x => x.displayText.includes(keyword))
|
const keywordLowercase = keyword.toLowerCase()
|
||||||
|
return list.filter(emoji =>
|
||||||
|
emoji.displayText.toLowerCase().includes(keywordLowercase)
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const EmojiPicker = {
|
const EmojiPicker = {
|
||||||
|
|
Loading…
Reference in a new issue