bug(COMPONENT): Inconsistency in behavior of a[mat-button] and a[mat-menu-item] when disabled
- Lingua principale
- TypeScript
- Stelle
- 25k
- Fork
- 6.8k
- Merge medio
- 1g 8h
- PR unite (30g)
- 91
Descrizione
### 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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia riproducendo il comportamento nel repository collegato angular-mat-a usando Chrome su Windows, confrontando a[mat-button] e a[mat-menu-item] disabilitati. Traccia il comportamento di menu-item e button di Angular Material; il lavoro è completato quando un mat-menu-item disabilitato non espone più opzioni di collegamento né consente la navigazione, in modo coerente con il comportamento del pulsante disabilitato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100