ng-zorro-antd icon indicating copy to clipboard operation
ng-zorro-antd copied to clipboard

Table 组件当 [(nzPageSize)] 为0时页面会卡死崩溃

Open Ghosthh2 opened this issue 2 years ago • 1 comments

Reproduction link

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

Steps to reproduce

点击删除按钮后里面把 Size 改成 0 了,页面直接卡死然后崩溃 当然,让初始化值设置成0也会出现

What is expected?

size = 0 页面不崩溃

What is actually happening?

size = 0 页面直接卡死页面然后崩溃。卡死会有一段时间我看任务管理器中当我的内存 95% 以上时页面弹出崩溃

Environment Info
ng-zorro-antd 13.2.2
Browser Chrome/101.0.4951.67

Ghosthh2 avatar May 13 '22 08:05 Ghosthh2

Setting nzPageSize to 0 won't make the page crash, seen as below link. It just shows nothing in the table. https://stackblitz.com/edit/ng-zorro-antd-ivy-rzkuui?file=src/app/app.component.ts

I guess the crash may happen because of other logic 🧐

LemniscateX avatar Sep 07 '22 10:09 LemniscateX