Skip to content

Commit

Permalink
fix(module:pagination): wrong event by changing the page size
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz committed Oct 27, 2017
1 parent 4efd6f7 commit b30c29c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/pagination/nz-pagination.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ export class NzPaginationComponent {
_buildIndexes() {
this._lastIndex = Math.ceil(this._total / this._pageSize);
if (this._current > this._lastIndex) {
this._jumpPage(this._lastIndex);
this.nzPageIndex = this._lastIndex;
this.nzPageIndexChange.emit(this.nzPageIndex);
}
const tmpPages = [];
if (this._lastIndex <= 9) {
Expand Down

0 comments on commit b30c29c

Please sign in to comment.