-
Notifications
You must be signed in to change notification settings - Fork 4k
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
nz-modal Cannot read property 'nativeNode' of null #5328
Comments
|
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 |
i import NgZorroAntdModule twice in different module,thx |
I will reopen so that others with the same problem can find it until it fixed. |
…5332) * fix(module:modal): some cases there is no changes detected close NG-ZORRO#5328, close NG-ZORRO#5287, close NG-ZORRO#5259 * docs(module:modal): update the API docs close NG-ZORRO#3743
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../node_modules/@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../node_modules/@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 和功能都不受影响,只是控制台报错
The text was updated successfully, but these errors were encountered: