Skip to content

bug(mat-tab-group): empty space in tab-group after last tab deletion #29681

Open
@gkrzysztofbury

Description

@gkrzysztofbury

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

In certain conditions when removing tab the blank space remains.

Reproduction

Can be reproduced on angular components demo page: https://material.angular.io/components/tabs/examples#tab-group-dynamic

https://youtu.be/LAtw54i27wE

Steps to reproduce:

  1. Create many tabs, paggination buttons must be visible
  2. Scroll to the last tab
  3. Delete it

Expected Behavior

Deleted tab disappears and whole tab grup is scrolled to fill blank space

Actual Behavior

Deleted tab disappears blank space remains.

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):

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