We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 141761e commit f2d8073Copy full SHA for f2d8073
CHANGELOG.md
@@ -1,5 +1,9 @@
1
# Changelog
2
3
+### 1.1.3
4
+
5
+Fixed: 1.1.2 broke paging...
6
7
### 1.1.2
8
9
Fixed: Fixed issue with pager not updating properly if other events updated the collection
src/Leaves/Pager.php
@@ -78,8 +78,8 @@ protected function onModelCreated()
78
public function setCollection(Collection $collection)
79
{
80
$this->collection = $collection;
81
- // Reset the number of pages so when rendered it gets recalculated
82
- $this->model->numberOfPages = null;
+ // Recalculate the number of pages.
+ $this->model->numberOfPages = $this->calculateNumberOfPages();
83
try {
84
$this->setPageNumber($this->model->pageNumber);
85
} catch (PagerOutOfBoundsException $ex) {
0 commit comments