bug(COMPONENT): Inconsistency in behavior of a[mat-button] and a[mat-menu-item] when disabled
- 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
This may be a feature request.
When a[mat-button] is disabled, if you right-click it, the menu will be the normal one, but if you right-click a[mat-menu-item], the options for clicking a link will be displayed, and you can actually navigate to the page.
### Reproduction
https://github.com/reuse-ay/angular-mat-a.git
### Expected Behavior
When a[mat-menu-item] is disabled, I don’t want the option for the link to be displayed.
### Actual Behavior
option for the link to be displayed.
### Environment
- Angular:19
- CDK/Material:19
- Browser(s):chrome
- Operating System (e.g. Windows, macOS, Ubuntu):windows
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le comportement dans le dépôt angular-mat-a lié à l’aide de Chrome sous Windows, en comparant a[mat-button] et a[mat-menu-item] désactivés. Suivez le comportement de menu-item et button dans Angular Material ; le travail est terminé lorsqu’un mat-menu-item désactivé n’expose plus d’options de lien et n’autorise plus la navigation, comme le bouton désactivé.
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