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

Steps步骤条中的 nz-step 用 ngFor 生成时控制台报 Error #2148

Closed
xcorpio opened this issue Sep 17, 2018 · 1 comment · Fixed by #2149
Closed

Steps步骤条中的 nz-step 用 ngFor 生成时控制台报 Error #2148

xcorpio opened this issue Sep 17, 2018 · 1 comment · Fixed by #2149
Labels

Comments

@xcorpio
Copy link

xcorpio commented Sep 17, 2018

Version

1.5.0

Environment

MacOS, Chrome 69.0.3497.92

Reproduction link

https://stackblitz.com/edit/ng-zorro-antd-start-tusl9b?file=src%2Fapp%2Fapp.component.html

Steps to reproduce

  1. 打开 https://stackblitz.com/edit/ng-zorro-antd-start-tusl9b?file=src%2Fapp%2Fapp.component.html
  2. 点击按钮
  3. 查看 Console

What is expected?

不报Error

What is actually happening?

报了

NzStepComponent.html:1 ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'ngIf: false'. Current value: 'ngIf: true'.
    at viewDebugError (core.js:7601)
    at expressionChangedAfterItHasBeenCheckedError (core.js:7589)
    at checkBindingNoChanges (core.js:7691)
    at checkNoChangesNodeInline (core.js:10552)
    at checkNoChangesNode (core.js:10541)
    at debugCheckNoChangesNode (core.js:11144)
    at debugCheckDirectivesFn (core.js:11072)
    at Object.eval [as updateDirectives] (NzStepComponent.html:1)
    at Object.debugUpdateDirectives [as updateDirectives] (core.js:11061)
    at checkNoChangesView (core.js:10440)

我本地加载还有,这个在链接中没复现

NzStepComponent.html:1 ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'null: 1'. Current value: 'null: 2'.
    at viewDebugError (core.js:7601)
    at expressionChangedAfterItHasBeenCheckedError (core.js:7589)
    at checkBindingNoChanges (core.js:7691)
    at checkNoChangesNodeInline (core.js:10552)
    at checkNoChangesNode (core.js:10541)
    at debugCheckNoChangesNode (core.js:11144)
    at debugCheckRenderNodeFn (core.js:11098)
    at Object.eval [as updateRenderer] (NzStepComponent.html:1)
    at Object.debugUpdateRenderer [as updateRenderer] (core.js:11087)
    at checkNoChangesView (core.js:10442)

Other?

不影响实际数据,但是上面的错误

@lock
Copy link

lock bot commented Sep 17, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 17, 2019
hsuanxyz pushed a commit to hsuanxyz/ng-zorro-antd that referenced this issue Aug 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants