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

新建Module中的component中nz-submenu使用ng-if后,在<span title>中使用变量,控制台报错 #3023

Closed
liwei511 opened this issue Mar 5, 2019 · 2 comments

Comments

@liwei511
Copy link

liwei511 commented Mar 5, 2019

Reproduction link

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

Steps to reproduce

打开控制台(console)查看报错信息。Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'width: 14'. Current value: 'width: 56'.

What is expected?

解决:ExpressionChangedAfterItHasBeenCheckedError

What is actually happening?

报错:ExpressionChangedAfterItHasBeenCheckedError

Environment Info
ng-zorro-antd 7.0.1
Browser Google Chrome 已是最新版本 版本 74.0.3717.0(正式版本)dev (64 位)

页面加载正常,控制台有报错信息。备注:Current value: 'width: 56'. 是变量文字都宽度

@ng-zorro-bot
Copy link
Collaborator

Translation of this issue:


In the component of the new Module, nz-submenu uses ng-if, and uses the variable in , the console reports an error.

Reproduction link

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

Steps to reproduce

Open the console (console) to view the error message. Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'width: 14'. Current value: 'width: 56'.

What is expected?

Solution: ExpressionChangedAfterItHasBeenCheckedError

What is actually happening?

Error: ExpressionChangedAfterItHasBeenCheckedError

Environment Info
ng-zorro-antd 7.0.1
Browser Google Chrome is the latest version Version 74.0.3717.0 (official version) dev (64-bit)

The page loads normally and the console has an error message. Remarks: Current value: 'width: 56'. is the variable text width

@tony-yyj
Copy link

same question.

Ricbet pushed a commit to Ricbet/ng-zorro-antd that referenced this issue Apr 9, 2020
hsuanxyz pushed 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