Clean up code
This commit is contained in:
parent
081a416103
commit
47af5419b1
2 changed files with 4 additions and 11 deletions
|
|
@ -192,13 +192,9 @@ const EmojiPicker = {
|
|||
setScroll(right + margin - headerCont.clientWidth)
|
||||
}
|
||||
},
|
||||
highlight (index) {
|
||||
highlight (groupId) {
|
||||
this.setShowStickers(false)
|
||||
const item = this.filteredEmojiGroups[index]
|
||||
if (!item) {
|
||||
return
|
||||
}
|
||||
const indexInList = this.emojiItems.findIndex(k => k.id === item.id)
|
||||
const indexInList = this.emojiItems.findIndex(k => k.id === groupId)
|
||||
this.$refs['emoji-groups'].scrollToItem(indexInList)
|
||||
},
|
||||
updateScrolledClass (target) {
|
||||
|
|
@ -261,9 +257,6 @@ const EmojiPicker = {
|
|||
this.filteredEmojiGroups = this.getFilteredEmojiGroups()
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.recalculateItemPerRow()
|
||||
},
|
||||
computed: {
|
||||
minItemSize () {
|
||||
return this.emojiHeight
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue