Skip to content

[mat-tab-group] matTabContent gets duplicated when switching tabs #14751

@hneuer

Description

@hneuer

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Each tab's content should be displayed just once

What is the current behavior?

Some tab's content gets duplicated when the tabs are switched frequently.

What are the steps to reproduce?

image

Note: I could reproduce this only with a div element right under the ng-template. It was not reproducible with just the text in there as it is in the original StackBlitz

What is the use-case or motivation for changing an existing behavior?

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Material 7.2.1
Chrome (maybe others)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions