Material submenu in separate component doesn't open on mouseover
- 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?
- [x] Yes, this behavior used to work in the previous version
### The previous version in which this bug was not present was
14
### Description
Creating a menu component as a library when the nested menu is in a separate component. The basic functionality of the menu is to hover over it, a nested menu should be opened. However, when the nested menu is in a separate component, on hover of the parent options, the nested menu is not opening.
This functionality was working fine in angular v14, after upgrading to 15.2.9 we are facing this issue
NOTE: The same functionality will work if the nested menu is in the same component.
### Reproduction
StackBlitz link: https://stackblitz.com/edit/angular-bifan2?file=src%2Findex.html
### Expected Behavior
To open the menu on hover when the nested menu is in a separate component
### Actual Behavior
The menu on hover is not working when the nested menu is in a separate component
### Environment
package.json versions
"@angular/animations": "15.2.9",
"@angular/cdk": "15.2.9",
"@angular/common": "15.2.9",
"@angular/compiler": "15.2.9",
"@angular/core": "15.2.9",
"@angular/forms": "15.2.9",
"@angular/material": "15.2.9",
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée et comparez le comportement au survol du menu imbriqué entre Angular 14 et Angular 15.2.9. Suivez le comportement du menu Angular Material lorsque le menu imbriqué se trouve dans un composant séparé. Le travail est terminé lorsque le survol de l’option parente ouvre le menu imbriqué, comme lorsque les deux menus se trouvent dans un seul composant.
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
- 45/100