bug(MatGroupTabs): MatTabBody content within a MatMenu does not display
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
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
_No response_
### Description
MatTab content in a mat menu will disappear when opening and closing the menu and transitioning between tabs. I believe the animations set the visibility to hidden; however, it will get in a state where it thinks it should be hidden even though the tab is highlighted causing the tab label to be the only thing visible.
### Reproduction
StackBlitz link: https://stackblitz.com/edit/ewu1na?file=src%2Fexample%2Fmenu-overview-example.html
Steps to reproduce:
1. Open Mat Menu
2. Select Second Tab
3. Click outside of MatMenu to close menu
4. Open menu and rapidly select either tab (may have to repeat steps 1-4). The key is to rapidly click the tabs, the content will disappear and will not come back until a few transitions. I think the animation is hiding it and never triggering it to display
### Expected Behavior
I expect tab content to be visible when a tab is in view and selected.
### Actual Behavior
Tab content is hidden tab content should be visible
### Environment
- Angular: 16.03
- CDK/Material: 16
- Browser(s): Edge
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée et suivez le comportement de MatGroupTabs/MatTabBody dans MatMenu lors de changements rapides d’onglet et de la réouverture du menu. Étudiez l’état de transition qui laisse le contenu de l’onglet sélectionné masqué ; le travail est terminé lorsque le contenu sélectionné reste visible après des cycles répétés de fermeture, de réouverture et de changement d’onglet.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, typescript
- Domaine
- frontend
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100