angular / angular/components

MatDrawerContainer opened and mode="side" doesn't work as expected inside a MatTabGroup

Abierto
#16,920 4 comentarios 0 reacciones 0 asignados Ver en GitHub
area: material/sidenav P4
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

#### Description

If we have a MatDrawerContainer with initial state opened and mode="side"or mode="push" in a tab that is not visible, when we go to the tab, the MatDrawerContent is not correctly shrinked.

#### Reproduction

StackBlitz: https://stackblitz.com/edit/angular-9hnnl8

Steps: -Just switch to tabs 2 or 3.

#### Expected Behavior

I expect the drawer content to shrink if the drawer is opened (as it happens normally)

#### Actual Behavior

The MatDrawerContent of the not selected tabs is not correctly shrinked.

#### Environment

- Angular:
- CDK/Material:
- Browser(s): Chrome
- Operating System: 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 e inspecciona la interacción entre MatDrawerContainer y MatTabGroup cuando las pestañas 2 y 3 pasan a ser visibles. Comprueba los drawers abiertos inicialmente en los modos side y push, y verifica que MatDrawerContent se reduzca correctamente después de cambiar de pestaña. Se considera terminado cuando el contenido tiene el tamaño esperado en ambas pestañas.

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.