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

NzTable Data List Pagination Seriously Bug #6272

Closed
emondora opened this issue Dec 29, 2020 · 1 comment · Fixed by #6298
Closed

NzTable Data List Pagination Seriously Bug #6272

emondora opened this issue Dec 29, 2020 · 1 comment · Fixed by #6298
Assignees

Comments

@emondora
Copy link
Contributor

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-ivy-barbkh?file=src/app/app.component.ts

Steps to reproduce

  1. Set default pageSize 10 items;
  2. Set data list more than 10 items(eg: 15 items);
  3. Set default pageIndex = 2;
  4. Change data list, set list empty = [] (0 items);
  5. NzTable appears "empty" notice, and the old data list shows before "empty" notice.

What is expected?

When set data list empty (0 items), NzTalbe should appears "empty" notice , do not show "old data list".

What is actually happening?

NzTable appears "empty" notice, also the "old data list" shows before "empty" notice.

Environment Info
ng-zorro-antd 11.0.0
Browser Chrome 87.0.4280.88
@ywager
Copy link
Contributor

ywager commented Sep 9, 2021

HI @vthinkxie @hsuanxyz , Since this error has a wide range of effects, can this patch be cherry picked to v10.2.2, or is there any way to solve it without relying on the component library workaround in v10.2.2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants