forked from DebaucheryLibrarian/traxxx
Reset pagination on search, scroll into view when paginating search.
This commit is contained in:
@@ -20,7 +20,10 @@
|
||||
<script>
|
||||
function search(typing) {
|
||||
if (!typing || this.eager) {
|
||||
this.$router.replace({ query: { query: this.query || undefined } });
|
||||
this.$router.replace({
|
||||
query: { query: this.query || undefined },
|
||||
params: { ...this.$route.params, pageNumber: 1 },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user