bug(COMPONENT): Inconsistency in behavior of a[mat-button] and a[mat-menu-item] when disabled
- Dominant language
- TypeScript
- Stars
- 25k
- Forks
- 6.8k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 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
Contributor guide
Research direction
Start by reproducing the behavior in the linked angular-mat-a repository using Chrome on Windows, comparing disabled a[mat-button] and a[mat-menu-item]. Trace the Angular Material menu-item and button behavior; done means a disabled mat-menu-item no longer exposes link options or permits navigation, matching the disabled button behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100