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

nz-drawer [nzVisible]="true" 报错。 #3200

Closed
zaureus opened this issue Apr 1, 2019 · 2 comments
Closed

nz-drawer [nzVisible]="true" 报错。 #3200

zaureus opened this issue Apr 1, 2019 · 2 comments
Assignees

Comments

@zaureus
Copy link

zaureus commented Apr 1, 2019

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-x8ifyn

Steps to reproduce

加载即报错。

What is expected?

修正

What is actually happening?

Error: Cannot read property 'overlayElement' of undefined

Environment Info
ng-zorro-antd 7.2.0
Browser chrome 版本 73.0.3683.86(正式版本) (64 位)
@ng-zorro-bot
Copy link
Collaborator

Translation of this issue:


nz-drawer [nzVisible]="true" Report an error.

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-x8ifyn

Steps to reproduce

Loading is an error.

What is expected?

Correction

What is actually happening?

Error: Cannot read property 'overlayElement' of undefined

Environment Info
ng-zorro-antd 7.2.0
Browser chrome version 73.0.3683.86 (official version) (64 bit)

@PineappleBeer
Copy link

PineappleBeer commented Apr 3, 2019

这个[nzVisible]默认值不能为ture,否则初始渲染的时候就会报这个错了,只能设置初始值为false,后面再设置为ture,这样就不会报错了。

ngAfterViewInit(): void {
        setTimeout(() => {
          this.openDrawer();
        });
     }

@hsuanxyz hsuanxyz self-assigned this Apr 10, 2019
andrew-yangy pushed a commit to andrew-yangy/ng-zorro-antd that referenced this issue Jun 20, 2019
Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
hsuanxyz added a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants