Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [Bug]: 按钮在 disabled 为 true 状态下, 点击按钮旁边空白行也会触发 click 事件 #362

Open
ztworkgithub opened this issue Jan 15, 2025 · 0 comments

Comments

@ztworkgithub
Copy link

Version

16.2.0

Angular Version

16.2.12

Link to minimal reproduction

<d-button style="display: flex; justify-content: center;" [disabled]="true" (click)="click()"> 测试

测试 2

click() {
console.log('click 被点击');
}

Step to reproduce

按照上面的代码, 点击页面显示按钮同行, 旁边部分 d-button 会触发 click

What is expected

禁用状态点击按钮旁边空白不触发 click 事件.

What is actually happening

禁用状态点击按钮旁边空白触发 click 事件.

Any additional comments (optional)

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant