fix picker not filling on opening, removed console log
This commit is contained in:
parent
c000879f2f
commit
1400d723f2
2 changed files with 1 additions and 2 deletions
|
@ -312,7 +312,6 @@ const EmojiInput = {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
const { offsetHeight } = this.input.elm
|
const { offsetHeight } = this.input.elm
|
||||||
const { picker } = this.$refs
|
const { picker } = this.$refs
|
||||||
console.log(picker)
|
|
||||||
const pickerBottom = picker.$el.getBoundingClientRect().bottom
|
const pickerBottom = picker.$el.getBoundingClientRect().bottom
|
||||||
if (pickerBottom > window.innerHeight) {
|
if (pickerBottom > window.innerHeight) {
|
||||||
picker.$el.style.top = 'auto'
|
picker.$el.style.top = 'auto'
|
||||||
|
|
|
@ -93,7 +93,7 @@ const EmojiPicker = {
|
||||||
const bufferSize = this.customEmojiBuffer.length
|
const bufferSize = this.customEmojiBuffer.length
|
||||||
const bufferPrefilledSane = bufferSize === LOAD_EMOJI_SANE_AMOUNT && !this.customEmojiLoadAllConfirmed
|
const bufferPrefilledSane = bufferSize === LOAD_EMOJI_SANE_AMOUNT && !this.customEmojiLoadAllConfirmed
|
||||||
const bufferPrefilledAll = bufferSize === this.filteredEmoji.length
|
const bufferPrefilledAll = bufferSize === this.filteredEmoji.length
|
||||||
if (!forceUpdate || bufferPrefilledSane || bufferPrefilledAll) {
|
if (forceUpdate || bufferPrefilledSane || bufferPrefilledAll) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.customEmojiTimeout) {
|
if (this.customEmojiTimeout) {
|
||||||
|
|
Loading…
Reference in a new issue