Fixed: return to page 1 after searching
This commit is contained in:
parent
5dd251f451
commit
82cdca1034
|
@ -48,8 +48,8 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
isearch: {
|
isearch: {
|
||||||
set: debounce(function(v) {
|
set: debounce(function(v) {
|
||||||
this.$inertia.visit(this.qs({ search: v }), {
|
this.$inertia.visit(this.qs({ page: 1, search: v }), {
|
||||||
only: ['search', 'data'],
|
only: ['page', 'search', 'data'],
|
||||||
preserveState: true,
|
preserveState: true,
|
||||||
});
|
});
|
||||||
}, 500),
|
}, 500),
|
||||||
|
|
Loading…
Reference in New Issue