fix scrollerref not setting properly
This commit is contained in:
parent
8c4de692f4
commit
1c459028cc
|
@ -119,6 +119,7 @@ const Notifications = {
|
|||
},
|
||||
teleportTarget () {
|
||||
// handle scroller change
|
||||
this.$nextTick(() => {
|
||||
this.scrollerRef.removeEventListener('scroll', this.updateScrollPosition)
|
||||
this.scrollerRef = this.$refs.root.closest('.column.-scrollable')
|
||||
if (!this.scrollerRef) {
|
||||
|
@ -126,6 +127,7 @@ const Notifications = {
|
|||
}
|
||||
this.scrollerRef.addEventListener('scroll', this.updateScrollPosition)
|
||||
this.updateScrollPosition()
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in a new issue