From fe56ffe124373b080b974cf68594d165ec6d6522 Mon Sep 17 00:00:00 2001 From: kaubu <29447633+kaubu@users.noreply.github.com> Date: Sun, 17 Dec 2023 12:41:22 +0000 Subject: [PATCH] Fix dictionary not scrolling up after new search --- src/components/SearchResult.vue | 1 + src/views/Home.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/SearchResult.vue b/src/components/SearchResult.vue index 2fca000..ed9913c 100644 --- a/src/components/SearchResult.vue +++ b/src/components/SearchResult.vue @@ -491,6 +491,7 @@ const instance = getCurrentInstance(); // eslint-disable-next-line @typescript-eslint/no-unused-vars watch(route, (_to, _from) => { refreshSearch(); + window.scrollTo(0, 0); instance?.proxy?.$forceUpdate(); }); diff --git a/src/views/Home.vue b/src/views/Home.vue index c9cb2ff..f97a82f 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -56,7 +56,7 @@
This project is still in progress, expect errors.
-v1.6.2 (2023-12-17)
+v1.6.3 (2023-12-17)