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