Skip to content

Commit 24408d8

Browse files
committed
Merge pull request #4186 from benoror/patch-1
fix(pagination): avoid initial double firing of `paginationChanged`
2 parents b6faacc + 1407038 commit 24408d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/pagination/js/pagination.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
var deregT = $scope.$watch('grid.options.totalItems + grid.options.paginationPageSize', setShowing);
376376

377377
var deregP = $scope.$watch('grid.options.paginationCurrentPage + grid.options.paginationPageSize', function (newValues, oldValues) {
378-
if (newValues === oldValues) {
378+
if (newValues === oldValues || oldValues === undefined) {
379379
return;
380380
}
381381

0 commit comments

Comments
 (0)