Skip to content

Commit

Permalink
Reset Page on "Per Page" changing
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe committed Sep 18, 2024
1 parent a76ae7b commit 20691dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Traits/WithPagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public function updatedPerPage(int|string $value): void
session()->put($this->getPerPagePaginationSessionKey(), $this->getPerPageAccepted()[0] ?? 10);
}
$this->setPerPage($value);
$this->resetPage($this->getComputedPageName());

}

protected function queryStringWithPagination(): array
Expand Down

0 comments on commit 20691dd

Please sign in to comment.