bug(COMPONENT): Inconsistency in behavior of a[mat-button] and a[mat-menu-item] when disabled
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
### 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
贡献指南
调研方向
首先,使用 Windows 上的 Chrome,在链接的 angular-mat-a 仓库中复现该行为,并比较已禁用的 a[mat-button] 和 a[mat-menu-item]。跟踪 Angular Material 的 menu-item 和 button 行为;当已禁用的 mat-menu-item 不再暴露链接选项或允许导航,并与已禁用按钮的行为一致时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100