Skip to content

Commit f0905a0

Browse files
authored
Merge pull request #986 from attargah/patch-3
UX improvement: Auto-scroll to top when changing pages on plugins
2 parents 65db6b8 + 94e3983 commit f0905a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

resources/views/components/plugins/list.blade.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,11 @@ class="mx-auto w-full max-w-8xl px-5 sm:px-10"
7474
get currentPage() {
7575
return +this._currentPage
7676
},
77-
set currentPage(value) {
77+
set currentPage(value) {
7878
this._currentPage = value
79+
this.$nextTick(() => {
80+
this.$refs.section.scrollIntoView({ behavior: 'smooth' })
81+
})
7982
},
8083
8184
perPage: 24,

0 commit comments

Comments
 (0)