reset content scroll position

This commit is contained in:
Nazar Kanaev
2020-08-04 22:16:44 +01:00
parent e61fcdbe49
commit 44b5a6a67f
2 changed files with 4 additions and 0 deletions

View File

@@ -243,6 +243,9 @@ var vm = new Vue({
this.itemSelectedDetails = null
return
}
if (this.$refs.content) {
this.$refs.content.scrollTop = 0
}
this.itemSelectedDetails = this.itemsById[newVal]
if (this.itemSelectedDetails.status == 'unread') {
this.itemSelectedDetails.status = 'read'