fix crash in mobile nav
This commit is contained in:
parent
7966b0b97f
commit
142e8cbf2f
2 changed files with 1 additions and 3 deletions
|
|
@ -152,9 +152,6 @@ const MobileNav = {
|
||||||
},
|
},
|
||||||
onScroll({ target: { scrollTop, clientHeight, scrollHeight } }) {
|
onScroll({ target: { scrollTop, clientHeight, scrollHeight } }) {
|
||||||
this.notificationsAtTop = scrollTop > 0
|
this.notificationsAtTop = scrollTop > 0
|
||||||
if (scrollTop + clientHeight >= scrollHeight) {
|
|
||||||
this.$refs.notifications.fetchOlderNotifications()
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,7 @@
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- Notifications teleport target -->
|
||||||
<div
|
<div
|
||||||
id="mobile-notifications"
|
id="mobile-notifications"
|
||||||
ref="mobileNotifications"
|
ref="mobileNotifications"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue