Skip to content

Tab of tab group inside another tab group does not draw the ink bar when selected using selectedIndex #6478

Closed

Description

@gtranter

Bug, feature request, or proposal:

Bug.

What is the expected behavior?

A tab group with a valid selectedIndex value set should make that tab active when the tab group is made visible.

What is the current behavior?

If the tab group is inside a tab of another (outer) group, the tab is selected but does not appear active - the tab label underline is not drawn.

What are the steps to reproduce?

Plunker template: http://run.plnkr.co/plunks/f26CWDF1Akfij0FQOyz4/
Click on the second outer tab "Tab with Tab Group" - the content of the single tab of the inner tab group is shown but the tab label ink bar is not drawn (in the DOM, its width is zero).

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

Doesn't currently do what it should do.

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

2.0.0-beta.8

Is there anything else we should know?

Tested in Chrome.

Activity

  1. added
    P4
    on Aug 16, 2017
  2. amcdnl commented on Aug 25, 2017

    @amcdnl
    Contributor

    Related to #1854

  3. amcdnl commented on Sep 9, 2017

    @amcdnl
    Contributor

    This can be resolved by lazy loaded tabs via #6832

  4. drakenfly commented on Sep 18, 2017

    @drakenfly

    I think this is the same issue as #7006

  5. luigi1610 commented on Nov 17, 2020

    @luigi1610

    This can be resolved by lazy loaded tabs via #6832

    The lazy load cannot work if you full the content of tab with rxjs observable subject

  6. crisbeto commented on May 29, 2026

    @crisbeto
    Member

    We are closing this issue, because we've determined, using a semi-automated process, that it is no longer relevant, has low engagement, or it does not have enough information to proceed. Feel free to comment if you think the issue should be reopened, or open a new issue with the latest version of our code instead.

  7. angular-automatic-lock-bot commented on Jun 29, 2026

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  8. locked and limited conversation to collaborators on Jun 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P4action: close-candidatearea: material/tabs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions