DCzajkowski / vue-emoji-picker

Very simple, yet powerful, vue emoji picker šŸŽ‰šŸ”„šŸš€
MIT License
332 stars 49 forks source link

can`t show the box with the emoji emotions #10

Closed liwen327 closed 5 years ago

liwen327 commented 5 years ago

I refer to the demo.But it can not display the box with emoji emotions when i click the button.why?

my code is:

        <div slot="emoji-picker" slot-scope="{ emojis, insert, display }">
          <div class="emoji-picker" :style="{ top: display.y + 'px', left: display.x + 'px' }">
            <div class="emoji-picker__search">
              <input type="text" v-model="search" v-focus>
            </div>
            <div>
              <div v-for="(emojiGroup, category) in emojis" :key="category">
                <h5>{{ category }}</h5>
                <div class="emojis">
                  <span
                    v-for="(emoji, emojiName) in emojiGroup"
                    :key="emojiName"
                    @click="insert(emoji)"
                    :title="emojiName"
                  >{{ emoji }}</span>
                </div>
              </div>
            </div>
          </div>
        </div>
      </emoji-picker>
    </div>
8ctopotamus commented 5 years ago

Having the same issue. It was working fine previously, now I can't open the emoji menu either.

8ctopotamus commented 5 years ago

@liwen327 Check out the answer in this issue: https://github.com/DCzajkowski/vue-emoji-picker/issues/9#issuecomment-463962778. Modifying my template code to match their codepen worked!

DCzajkowski commented 5 years ago