Skip to content

bug(tab): overlap the previous tab body content  #19515

Open
@Nishfdo

Description

@Nishfdo

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-jpeybu?file=src%2Fapp%2Ftab-group-dynamic-height-example.html

Steps to reproduce:

  1. Change the animationDuration from 500ms to 5000ms

Expected Behavior

Navigate from one tab to the next tab without overlapping the previous tab body with animation. In this scenario, I am using just two tabs.

Actual Behavior

Overlapping the previous tab content in tab transition

Demo
Demo

Notes:

Lazily load the tab contend by wrapping the tab content in <ng-template matTabContent> did not help to resolve this issue either.

Environment

  • Angular: 9.1.1
  • CDK/Material: 9.2.4
  • Browser(s): Chrome (Version 83.0.4103.61 (64-bit)), Firefox (77.0 (64-bit))
  • Windows Operating System: Win10 (x64-bit)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/tabs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions