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 · 0 comments

Comments

Projects
None yet
2 participants
@xcorpio

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?

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

@vthinkxie vthinkxie added the 🐛 Bug label Sep 17, 2018

vthinkxie added a commit to vthinkxie/ng-zorro-antd that referenced this issue Sep 17, 2018

@vthinkxie vthinkxie referenced this issue Sep 17, 2018

Merged

fix(module:steps): fix dynamic steps error #2149

2 of 3 tasks complete

vthinkxie added a commit that referenced this issue Sep 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment