Skip to content

Commit 20691dd

Browse files
committed
Reset Page on "Per Page" changing
1 parent a76ae7b commit 20691dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Traits/WithPagination.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ public function updatedPerPage(int|string $value): void
7474
session()->put($this->getPerPagePaginationSessionKey(), $this->getPerPageAccepted()[0] ?? 10);
7575
}
7676
$this->setPerPage($value);
77+
$this->resetPage($this->getComputedPageName());
78+
7779
}
7880

7981
protected function queryStringWithPagination(): array

0 commit comments

Comments
 (0)