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
[Component] [button] el-button按钮,当设置tag="a"的时候 disabled无效 #16591
Comments
This is normal behavior. In fact, |
是否可以考虑是在a标签的时候使用pointer-events在实现禁用功能 |
|
是的,这只是hack的一个方案想法,对于大部分用户来说,普遍认为就只要设置了disabled点击事件不要触发。我相信这种场景来问问题的用户肯定不在少数,或许可以在文档中说明,disabled在tag=a时候无效。 |
Bug Type:
Component
Environment
3.4.21
2.7.0
Windows
Vite
Reproduction
Related Component
el-button
Reproduction Link
Element Plus Playground
Steps to reproduce
test
What is Expected?
当设置:disabled=true的时候 无法点击跳转
What is actually happening?
实际可以点击跳转
Additional comments
(empty)
The text was updated successfully, but these errors were encountered: