jm-david / emoji-mart-vue

One component to pick them all 👊🏼
https://jm-david.github.io/emoji-mart-vue
BSD 3-Clause "New" or "Revised" License
603 stars 82 forks source link

emojiIndex not working #48

Open navieko opened 5 years ago

navieko commented 5 years ago

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.

ikoolik commented 5 years ago

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

ikoolik commented 5 years ago

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

andresbravog commented 5 years ago

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

kg-bot commented 5 years ago

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

andresbravog commented 5 years ago

@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')
kg-bot commented 5 years ago

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.

Tarasssss commented 5 years ago

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??