Skip to content

Commit

Permalink
Reset Page on "Per Page" changing (#1953)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrljoe authored Sep 18, 2024
1 parent a76ae7b commit 07e8dbc
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 07e8dbc

Please sign in to comment.