bug(sidenav): Sidenav opening animation triggers on page navigation
- 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
When using Angular Material’s Sidenav with `mode="side"` and `opened="true"`, navigating between pages triggers the opening animation, even though the sidenav is already in the open state. This behavior is inconsistent with the initial navigation, where the animation does not occur (which is the expected behavior).
### Reproduction
Steps to reproduce:
1. Go to https://material.angular.dev/components/sidenav/overview
2. Click on any link and go back to the previous page
### Expected Behavior
If the sidenav’s opened input is set to true initially, the opening animation should not play when moving between pages.
### Actual Behavior
The opening animation is triggered on page navigation, even if the sidenav is already open.
### Environment
- Angular: 21.2.6
- CDK/Material: 21.2.6
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Windows
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par l’implémentation de Angular Material Sidenav et reproduisez le comportement décrit dans les étapes de l’issue sur material.angular.dev en utilisant mode="side" et opened="true". Suivez ce qui se passe lors de la navigation entre les pages après le chargement initial, puis vérifiez que la navigation ne déclenche plus l’animation d’ouverture tandis que le sidenav reste ouvert.
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é
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 55/100