From c2830dd1dc0a7b65b513c6b88ebc50dd479cbe23 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Fri, 29 Sep 2023 15:08:02 +0000 Subject: [PATCH] Bug 32474: Fix scroll bump when new data loads This patch addresses an annoying scroll bump when new data loads. Previously the scrollbar would jump all the way to the top of the selct before resetting, this has now been stopped. Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart Signed-off-by: Katrin Fischer --- .../prog/js/vue/components/InfiniteScrollSelect.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/InfiniteScrollSelect.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/InfiniteScrollSelect.vue index 2548f8fd8a..b3571eb55b 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/InfiniteScrollSelect.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/InfiniteScrollSelect.vue @@ -161,6 +161,7 @@ export default { this.scrollPage++ await this.$nextTick() const client = APIClient.erm + ul.scrollTop = scrollTop await client[this.dataType] .getAll( {}, -- 2.39.5