-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected nzPageIndexClickChange
event got emitted by changing pagination's pageSize
#482
Labels
Comments
loveDstyle
changed the title
Unexpected
Unexpected Oct 26, 2017
nzPageIndexClickChange
event got emitted by changing pagination's pageSizenzPageIndexClickChange
event got emitted by changing pagination's pageSize type:bug
loveDstyle
changed the title
Unexpected
Unexpected Oct 26, 2017
nzPageIndexClickChange
event got emitted by changing pagination's pageSize type:bugnzPageIndexClickChange
event got emitted by changing pagination's pageSize Label:type:bug
loveDstyle
changed the title
Unexpected
Unexpected Oct 26, 2017
nzPageIndexClickChange
event got emitted by changing pagination's pageSize Label:type:bugnzPageIndexClickChange
event got emitted by changing pagination's pageSize
will be fixed in next version, thanks for your feedback. |
@vthinkxie _jumpPage(index, isClick = true) {
...
if (isClick) {
this.nzPageIndexClickChange.emit(this.nzPageIndex);
}
} correct: _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);
}
...
} |
3 tasks
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
hsuanxyz
added a commit
to hsuanxyz/ng-zorro-antd
that referenced
this issue
Aug 5, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm submitting a...
Current behavior
Pagination 组件中,点选切换pageSize的时候会在发出nzPageSizeChange事件之间先发出一个nzPageIndexClickChange事件。
Expected behavior
点选切换pageSize的时候不再发出nzPageIndexClickChange事件
What is the motivation / use case for changing the behavior?
该bug导致导致在asyncTable中点选每页条目时行为异常;这是由于_buildIndexes方法中调用了_jumpPage方法造成的,而_jumpPage应该只由用户点击操作来调用
The text was updated successfully, but these errors were encountered: