Skip to content
Snippets Groups Projects
Commit ae58c106 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

move scroll reset to click functions

parent d1f58dcc
No related branches found
No related tags found
No related merge requests found
......@@ -486,6 +486,9 @@ export default {
if (this.article && this.article.article_id == item.article_id){
this.article_key++
this.replace_history()
if (!this.$route.hash) {
window.scrollTo(0,0)
}
}else{
navigate_to_article(this, item.source)
......@@ -494,15 +497,15 @@ export default {
details_click: function(item) {
this.article = item.article
this.replace_history()
if (!this.$route.hash) {
window.scrollTo(0,0)
}
},
return_to_results: function() {
this.article = null
}
},
mounted: function(){
if (!this.$route.hash) {
window.scrollTo(0,0)
}
let self = this
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment