bug: MatButton renders active state when cdkCopyToClipboard is applied
未关闭
area: material/button
material spec
P4
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
#### Reproduction
Use StackBlitz to reproduce your issue: https://stackblitz.com/edit/angular-fw7eev?file=src/app/cdk-clipboard-overview-example.html
Steps to reproduce:
1. Click on the copy button
2. Move the mouse cursor outside of the button area
#### Expected Behavior
Button should not be highlighted after the cursor moves out of its area
#### Actual Behavior
Button stays highlighted
#### Environment
- Angular: 10
- CDK/Material: 10
- Browser(s): Chrome
- Operating System (e.g. Windows, macOS, Ubuntu): Mac
贡献指南
调研方向
打开链接的 StackBlitz 复现,并在 Chrome 中通过点击复制按钮,然后将光标移开来复现该行为。调查 MatButton 与 cdkCopyToClipboard 之间的交互;当光标离开按钮区域后按钮不再高亮时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100