bug(TabNavBar): mat-tab-link gets selected only once #30036
Labels
area: material/tabs
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Is this a regression?
The previous version in which this bug was not present was
No response
Description
When using the mat-tab-nav-bar with a single mat-tab-link, there is a problem when the value of the active property gets toggled two or more times. To be more specific, when the component is loaded, the ink bar is visible as the "active" property is "true". After toggling, the "active" property value is "false" and the ink bar is no longer visible. The problem comes when the "active" property value toggles to "true" again but the ink bar is no longer visible.
Reproduction
StackBlitz link: https://stackblitz.com/edit/mky45h?file=src%2Fexample%2Ftab-nav-bar-basic-example.ts
Steps to reproduce:
Expected Behavior
It is expected that:
Actual Behavior
Environment
The text was updated successfully, but these errors were encountered: