mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-13 18:00:05 +00:00
reset content scroll position
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user