Skip to content

tabs: nested tabs don't show selected md-tab #5503

Closed

Description

@craigsh

Bug, feature request, or proposal:

Bug: An md-tab-group inside an md-tab-group doesn't show the selected md-tab if the top-level md-tab isn't initially selected.

What is the expected behavior?

The md-tab should show its selected state even if not initially visible.

What is the current behavior?

The md-tab is not showing its selection.

What are the steps to reproduce?

Run the following plunker and click on Main tab two.

http://embed.plnkr.co/lnZAqze9h6aLTvstcyet/

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

The tab's contents are shown even though it's not showing as selected. Confusing for the user to know which tab they're looking at.

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

Angular 4.2.5
Material 2.0.0-beta.6
Windows 10
Typescript 2.3.4
Chrome

Is there anything else we should know?

Nope

Activity

  1. added
    P3
    on Jul 5, 2017
  2. willshowell commented on Sep 26, 2017

    @willshowell
    Contributor

    Updated plunker http://plnkr.co/edit/OC4GzLKZ6oiDowG2mUEy?p=preview.

    As @julianobrasil mentioned in #7274, resizing the browser triggers showing of the ink, and the root cause is likely #5269.

  3. julianobrasil commented on Sep 26, 2017

    @julianobrasil
    Contributor

    As #5269 has lots of messages, I'd refer specifically to #5269 (comment)

  4. changed the title [-]md-tab-group inside md-tab-group doesn't show selected md-tab[/-] [+][Tabs] Nested tabs don't show selected md-tab[/+] on Oct 19, 2017
  5. MaximoB commented on May 17, 2019

    @MaximoB

    I am also experiencing this issue. Any updates?

  6. am-awais commented on Jun 17, 2019

    @am-awais

    please fix that bug for God sake,
    Mostly forums of angular material were ignored or just said its the copy of this copy of that, and no one gives the correct answer I don't know why the community is ignoring these major open issues.

  7. manast commented on Sep 12, 2020

    @manast

    wow, just got hit by this issue, annoying, and even forcing a selected tab with selectedIndex does not work :/

  8. changed the title [-][Tabs] Nested tabs don't show selected md-tab[/-] [+]tabs: nested tabs don't show selected md-tab[/+] on Jan 10, 2021
  9. Splaktar commented on Jan 10, 2021

    @Splaktar
    Contributor

    From the tabs placement docs:

    Caution Avoid nesting a tab within another tab.

  10. Splaktar commented on Jan 10, 2021

    @Splaktar
    Contributor

    The above Plunkers are very out of date and broken. Here's a StackBlitz repro of this issue which still exists.

  11. Splaktar commented on Jan 10, 2021

    @Splaktar
    Contributor

    This will be fixed with the new MDC-based tabs (currently in @angular/material-experimental): Demo

  12. amysorto commented on Nov 14, 2022

    @amysorto
    Contributor

    Confirming this is fixed in the new MDC based tab component coming in v15 soon.

  13. angular-automatic-lock-bot commented on Dec 15, 2022

    @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.

  14. locked and limited conversation to collaborators on Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3area: material/tabs

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions