Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

No tab selected is no longer supported #3172

Closed
larixer opened this issue Jun 8, 2015 · 0 comments
Closed

No tab selected is no longer supported #3172

larixer opened this issue Jun 8, 2015 · 0 comments
Assignees
Milestone

Comments

@larixer
Copy link

larixer commented Jun 8, 2015

In tabs demo one can see the text:
If you set the selected tab binding to -1, it will leave no tab selected.

But in reality this is not true. The work around before was to set md-selected="-2" to get no tab selected, but this doesn't work too in latest angular-material, because of:
$scope.selectedIndex = getNearestSafeIndex(newValue);
and getNearestSafeIndex will always select 0 tab if md-selected is negative.

Please support the case when no tab is selected, we need it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants