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

Emoji Mart take long time to load inside other component #62

Open murilolivorato opened 5 years ago

murilolivorato commented 5 years ago

Hello , I load Emoji Mart in my VUE root , it loads very fast . BUT if I put Emoji Mart inside A COMPONENT AND this comenent is loaded after the data is loaded . it will not work property , it will take long time to LOAD and will give some bugs .

I will display the code above , it will be easy to understand-

THIS WILL WORK PROPERLY

<my component ></my component>

BUT THIS WILL NOT WORK

<my component v-if="data" ></my component>

Inside my component

 <Picker   emoji="point_up"
                  :sheetSize="32"
                  title="Selecione Emojis"  />
murilolivorato commented 5 years ago

If I make the parent component like this -

 v-if="data"

It does not work properly