Closed
Description
We have an md-tab-group with a number of md-tabs and we're setting an initial selected tab using the selectedIndex
property and the user can then select to reset back to that initial tab. The problem we're finding is that if the user navigates using the labels to other tabs then chooses to reset back to the initial tab it doesn't work.
We've traced through and we can see that selectedIndex
is never updated by the tab component when the user selects other tabs, so when we try to set selectedIndex
back to the initial value, the angular change detection kicks in and says nothing changed.
We know this is early days but is this behaviour expected to change? Can we submit a PR to fix it? Or is there a rationale for it being this way?