Commit a591c6c
committed
fix: when changing itemsPerPage, also reset page to 0
consider this case:
- there are 11 items
- itemsPerPage is 10
- so there are 2 pages
- you go to page 2
- you change itemsPerPage to 100
- now there's just 1 page, to be precise: 11 items on the first page
- the 2nd page shows nothing
before this commit if the above situation happened, you'd just get a "no
results" page - i think it's safer to redirect to page 0 when changing
itemsPerPage to avoid the case described above1 parent dbd15f0 commit a591c6c
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
0 commit comments