1
0
Fork 0
forked from srxl/akkoma-fe

fix picker not filling on opening, removed console log

This commit is contained in:
Henry Jameson 2019-10-10 19:58:00 +03:00
parent c000879f2f
commit 1400d723f2
2 changed files with 1 additions and 2 deletions

View file

@ -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'

View file

@ -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) {