Fixed: return to page 1 after searching

This commit is contained in:
philipp lang 2021-06-28 23:26:03 +02:00
parent 5dd251f451
commit 82cdca1034
1 changed files with 2 additions and 2 deletions

View File

@ -48,8 +48,8 @@ export default {
computed: {
isearch: {
set: debounce(function(v) {
this.$inertia.visit(this.qs({ search: v }), {
only: ['search', 'data'],
this.$inertia.visit(this.qs({ page: 1, search: v }), {
only: ['page', 'search', 'data'],
preserveState: true,
});
}, 500),