Closed wangxg6 closed 4 years ago
<nz-modal
*ngIf="showModal"
[nzVisible]="true"
(nzOnCancel)="showModal = false"
>
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
</nz-modal>
This problem is not related to nz-modal , maybe your register twice nzModalModule
This problem is not related to nz-modal , maybe your register twice nzModalModule
but when i use ng-zorro-antd 8.x it has not this error
This problem is not related to nz-modal , maybe your register twice nzModalModule
i import NgZorroAntdModule twice in different module,thx
I will reopen so that others with the same problem can find it until it fixed.
Steps to reproduce
打开弹框,关闭弹框后控制台报错,升级了多个项目,就一个项目有这个问题,稳定复现,任何一个弹框都会有这样的问题
What is expected?
弹框关闭
What is actually happening?
弹框关闭,报错 TypeError: Cannot read property 'nativeNode' of null at removeDebugNodeFromIndex (core.js:30099) at DebugRenderer2.push../nodemodules/@angular/core/fesm5/core.js.DebugRenderer2.destroyNode (core.js:32384) at destroyViewNodes (core.js:31600) at destroyView (core.js:31588) at callViewAction (core.js:31706) at execEmbeddedViewsAction (core.js:31649) at destroyView (core.js:31578) at callWithDebugContext (core.js:32324) at Object.debugDestroyView [as destroyView] (core.js:32026) at ViewContainerRef.push../nodemodules/@angular/core/fesm5/core.js.ViewContainerRef.clear (core.js:22245) at NgIf.push../node_modules/@angular/common/fesm5/common.js.NgIf._updateView (common.js:3522) at NgIf.set [as ngIf] (common.js:3478) at updateProp (core.js:22883) at checkAndUpdateDirectiveInline (core.js:22638) at checkAndUpdateNodeInline (core.js:31501) at checkAndUpdateNode (core.js:31463) at debugCheckAndUpdateNode (core.js:32100) at debugCheckDirectivesFn (core.js:32060)
build 和功能都不受影响,只是控制台报错