Skip to content

Commit

Permalink
fix(module:pagination): wrong event by changing the page size (#486)
Browse files Browse the repository at this point in the history
close #482
  • Loading branch information
hsuanxyz authored and vthinkxie committed Nov 4, 2017
1 parent cdc0716 commit ad5bc29
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 ad5bc29

Please sign in to comment.