bug([mat-table]): mat-tab-group messes up expandable rows in table

Reproduction

Stackblitz project: https://stackblitz.com/edit/github-itepdn
To see the bug, just open the app, switch to the second tab and go back to the first one.
The bug only shows with enabled Ivy compiler.

Expected Behavior

Switching tabs in mat-tab-group shouldn’t affect the expanded rows in the table.

Actual Behavior

All rows in the table are expanded after switching to the second tab and back. This shouldn’t be possible as normally the table allows only for one expanded row at a time.

Environment

  • Angular: 9.1.0
  • CDK/Material: 9.2.0
  • Browser(s): Chrome
  • Operating System (e.g. Windows, macOS, Ubuntu): Windows and Ubuntu
  • Enabled Ivy

2 thoughts on “bug([mat-table]): mat-tab-group messes up expandable rows in table