angular / angular/components

bug(MatGroupTabs): MatTabBody content within a MatMenu does not display

Abierto
#27,265 1 comentario 0 reacciones 0 asignados Ver en GitHub
area: material/tabs P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

### 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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con la reproducción vinculada de StackBlitz y sigue el comportamiento de MatGroupTabs/MatTabBody dentro de MatMenu mientras cambias rápidamente de pestaña y vuelves a abrir el menú. Investiga el estado de transición que deja oculto el contenido de la pestaña seleccionada; la tarea estará terminada cuando el contenido seleccionado siga visible después de repetir ciclos de cerrar, volver a abrir y cambiar de pestaña.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
angular, typescript
Área
frontend
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.