From 1400d723f25ded6614a6f27cb35b3b25edc2b1ec Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 10 Oct 2019 19:58:00 +0300 Subject: [PATCH] fix picker not filling on opening, removed console log --- src/components/emoji_input/emoji_input.js | 1 - src/components/emoji_picker/emoji_picker.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js index c02a9327..2c73faa7 100644 --- a/src/components/emoji_input/emoji_input.js +++ b/src/components/emoji_input/emoji_input.js @@ -312,7 +312,6 @@ const EmojiInput = { this.$nextTick(() => { const { offsetHeight } = this.input.elm const { picker } = this.$refs - console.log(picker) const pickerBottom = picker.$el.getBoundingClientRect().bottom if (pickerBottom > window.innerHeight) { picker.$el.style.top = 'auto' diff --git a/src/components/emoji_picker/emoji_picker.js b/src/components/emoji_picker/emoji_picker.js index 67b08ef8..0d5ffc9b 100644 --- a/src/components/emoji_picker/emoji_picker.js +++ b/src/components/emoji_picker/emoji_picker.js @@ -93,7 +93,7 @@ const EmojiPicker = { const bufferSize = this.customEmojiBuffer.length const bufferPrefilledSane = bufferSize === LOAD_EMOJI_SANE_AMOUNT && !this.customEmojiLoadAllConfirmed const bufferPrefilledAll = bufferSize === this.filteredEmoji.length - if (!forceUpdate || bufferPrefilledSane || bufferPrefilledAll) { + if (forceUpdate || bufferPrefilledSane || bufferPrefilledAll) { return } if (this.customEmojiTimeout) {