Ng-zorro-antd: nz-tree-select: OOM mistake when displayed in specific case

Created on 14 Mar 2019  ·  1Comment  ·  Source: NG-ZORRO/ng-zorro-antd

Reproduction link

https://angular-ant-scrollbar.stackblitz.io

Steps to reproduce

I'm facing with a very particular case.

When displayed, tree select freezes the browser tab (then out of memory error), but only:

  • in nzCheckable / multiple mode
  • beyond a window width of 960px or when resizing width window beyond 960px or beyond/under 600px (varying in some tests)
  • wrapped in ng-toolbar component (but maybe can happened with other wrapper using CDK ?)

The stackblitz displays 2 working cases and the failing third after countdown to notice the freeze.

It worked fine in rc3, but freezes since 7.0.0.

I don't know if the issue have its place here because another lib infers the behavior, I need at least a workaround to make working both component as in rc3.

What is expected?

Browser tab not freezing when displaying tree select component.

What is actually happening?

Browser tab finishes with an out of memory error.

| Environment | Info |
|---|---|
| ng-zorro-antd | 7.0.0 |
| Browser | chrome 73, firefox 65 |

TreeSelect

Most helpful comment

This was fixed in latest releases.

>All comments

This was fixed in latest releases.

Was this page helpful?
0 / 5 - 0 ratings