Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
I think this issue has always been present
Description
When the active tab is replaced (e.g. when *ngFor sees a new object in the active tabs position), no events are emitted, and the new tab does not have isActive set.
I can understand selectedIndexChange not firing since the selected index hasn't changed, but I'd argue there is a case for emitting selectedTabChange since the selected tab instance has changed.
Either way, isActive should be set on the new tabs instance.
Reproduction
Steps to reproduce:
https://stackblitz.com/edit/components-issue-fmcjbc?devtoolsheight=33&file=src%2Fapp%2Fexample-component.html
- Switch tabs, notice the events fire and tab.isActive updates
- Click the "Replace tab instance"
- Note that no events are emitted and tab.isActive is no longer true.
Expected Behavior
I would expect selectedTabChange to emit, and for tab.isActive to be true.
Actual Behavior
No events are emitted and tab.isActive is not false.
Environment
The stackblitz issue template appears to be 12.2, but I have duplicated this in 13. I was unable to fork the stackblitz from the tab examples in the docs.