Material tabs (with matTabContent) are rendering multiple instances of the tab body inside the same tab when switching away and back too fast.
Not seeing duplicate content.
There are multiple instances of the same body/content inside.
https://stackblitz.com/edit/angular-material2-issue-jwxe85
Switch back and forth quickly on these tabs and pay attention to what happens to the one in the middle. You will notice content being rendered multiple times.
please provide a StackBlitz reproduction
Updated to include implementation on StackBlitz.
Another example based on material stackblitz template: https://stackblitz.com/edit/angular-vxdxkj
It can be reproduced by clicking quickly on tab headers in following order: 2, 3, 1.
After this content on second tab will be duplicated.
It seems like an animation issue, because disabling it (putting [@.disabled]="true" on tab group) solves the issue.
Any information on this? We've been experiencing the exact same behavior with @angular/material 7.2.1. We can, temporarily, work around it by adding [@.disabled]="true" on the MatTabGroup as mentioned by @pawelgur .
Duplicate of https://github.com/angular/material2/issues/10938
8.1.1
Still reproduced
8.2.3
Still there
Most helpful comment
Another example based on material stackblitz template: https://stackblitz.com/edit/angular-vxdxkj
It can be reproduced by clicking quickly on tab headers in following order: 2, 3, 1.
After this content on second tab will be duplicated.
It seems like an animation issue, because disabling it (putting
[@.disabled]="true"on tab group) solves the issue.