Skip to content

Commit

Permalink
Fix issue #2016
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrecek234 authored and mvorisek committed Jun 18, 2023
1 parent a78b335 commit 9bbdc4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ItemsPerPageSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function onPageLengthSelect(\Closure $fx): void
$this->cb->set(function () use ($fx) {
$ipp = isset($_GET['ipp']) ? (int) $_GET['ipp'] : null;
// $this->pageLength->set(preg_replace("/\[ipp\]/", $ipp, $this->label));
$this->set($ipp); // @phpstan-ignore-line TODO https://github.com/atk4/ui/issues/2016
$this->set((string) $ipp);
$reload = $fx($ipp);
if ($reload) {
$this->getApp()->terminateJson($reload);
Expand Down

0 comments on commit 9bbdc4b

Please sign in to comment.