Skip to content
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

Pagination: when the [(total)] has a initial 0 value, will emit a nzPageIndexChange event #288

Closed
xcorpio opened this issue Sep 13, 2017 · 2 comments

Comments

@xcorpio
Copy link

xcorpio commented Sep 13, 2017

I'm submitting a Bug


[ *] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Support request => Please do not submit support request here

Current behavior

<nz-pagination [(nzPageIndex)]="_current" [nzTotal]="total" [nzSize]="'small'" nzShowTotal (nzPageIndexChange)="load()"></nz-pagination>

when the total is initialized in my component like this

  ...
  total = 0
  _current = 1

It will emit a nzPageIndexChange event.

Expected behavior

I think the nzPageIndexChange event may only be triggerd by click event expect value changed in code

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

logically

Environment


Angular version: 4.3.0

ng-zorro-antd version: ^0.5.0-rc.4

Browser:
- [* ] Chrome (desktop) version 60.0.3112.113
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
 
For Tooling issues:
- Node version: v8.4.0  
- Platform:  Mac 

Others:

@wilsoncook
Copy link
Member

resolved by #281 , pls pay an attention to the next release, or may using master branch if emergency

@lock
Copy link

lock bot commented Feb 19, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Feb 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants