From 2f187f586bfc788e2fa9fa75f64dbf42cefb2f5a Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Mon, 10 Jan 2022 13:00:09 +0100 Subject: [PATCH] scroll to topin article lookup --- src/components/DictionaryView.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/DictionaryView.vue b/src/components/DictionaryView.vue index b6bd0579..644d4907 100644 --- a/src/components/DictionaryView.vue +++ b/src/components/DictionaryView.vue @@ -492,6 +492,9 @@ export default { }else{ navigate_to_article(this, item.source) + if (!this.$route.hash) { + window.scrollTo(0,0) + } } }, details_click: function(item) { -- GitLab