Skip to content

[Tabs] tab is not changed when selectedindex changes #12038

Closed
@bkappel

Description

@bkappel

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Tab corresponding to the index should be displayed.

What is the current behavior?

Previously selected tab is displayed, tabGroup selectedIndex is not updated.

What are the steps to reproduce?

This bug can also be found in the documentation/demos.
Material Demo
In the demo "Tag group with dynamically changing tabs" when checking the "Select tab after adding", the tab is not focused when adding a tab.
In custom code the tab is also not focused when updating the selectedIndex.

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

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

  • Angular: 6.0.6
  • Angular Material: 6.3.2
  • OS: Windows
  • Browsers: Chrome, FireFox, Opera, IE Edge

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions