bug(COMPONENT): Inconsistency in behavior of a[mat-button] and a[mat-menu-item] when disabled
- 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
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
Guía de contribución
Línea de trabajo
Comienza reproduciendo el comportamiento en el repositorio vinculado angular-mat-a usando Chrome en Windows, comparando a[mat-button] y a[mat-menu-item] deshabilitados. Rastrea el comportamiento de menu-item y button de Angular Material; se considera terminado cuando un mat-menu-item deshabilitado ya no expone opciones de enlace ni permite la navegación, igual que el comportamiento del botón deshabilitado.
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
- 45/100