Skip to content

tabs: ink bar calculated incorrectly with setTimeout #10651

Closed
@fxck

Description

@fxck

Repro https://stackblitz.com/edit/materia2-tabs-dialog-problem?file=app%2Fapp.component.ts

Possibly related: #10498

cc @mmalerba

Workaround would probably be to make the dialog component work without setTimeout, but that unfortunately causes

ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'id: undefined'. Current value: 'id: mat-dialog-1'. It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4A relatively minor issue that is not relevant to core functionsarea: material/tabs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions