emoji-mart-vue icon indicating copy to clipboard operation
emoji-mart-vue copied to clipboard

emojiIndex not working

Open navieko opened this issue 6 years ago • 7 comments

Is anyone else able to pull results using something like the following?

import { emojiIndex } from 'emoji-mart-vue'

emojiIndex.search('christmas')

I don't get any errors but it returns an empty array. I've also tried the custom data method using:

import data from 'emoji-mart-vue/data/messenger'
import { NimbleEmojiIndex } from 'emoji-mart-vue'

let emojiIndex = new NimbleEmojiIndex(data)
emojiIndex.search('christmas')

...but same issue.

navieko avatar Jan 24 '19 10:01 navieko

I experience the same issue emojiIndex.search always returns an empty list 🤔

ikoolik avatar Feb 06 '19 15:02 ikoolik

I have found the issue in the lib sources and create a Pull Request. Hope it will be merged soon 🙏

ikoolik avatar Feb 06 '19 15:02 ikoolik

Please, can we merge and solve this issue so we all can use the original package.

andresbravog avatar Mar 06 '19 11:03 andresbravog

Yeah, it is not working, please fix this as soon as possible, I need this so I can get original image and add that into background, or is there any other way we can get "real" styled emoticon instead of black "text-like" emoticons which are not very fancy or special at all

kg-bot avatar Mar 09 '19 12:03 kg-bot

@kg-bot My approach here was to load wmojiIndex from the original emoji-mart package.

This is not optimal as we load yet another package but solves the issue for now.

import { emojiIndex } from 'emoji-mart'

emojiIndex.search('christmas')

andresbravog avatar Mar 09 '19 18:03 andresbravog

Found another package until this is solved, also in that package I get original image path which I can use and get "real" emoji instead just black-white image.

Couldn't find any way to get original image in this package, anyone who knows this I would be grateful to hear it.

kg-bot avatar Mar 09 '19 19:03 kg-bot

Have the same issue, @andresbravog's works for me but in that case we load 2 identical emoji sets and that's why it is so slow! Has anybody found the way to fix that??

Tarasssss avatar Oct 21 '19 09:10 Tarasssss