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

Tree-Select组件,在antd的2.x 中,选项使用了disabled为true的属性,但是input框中仍能取消勾选 #7794

Closed
1 task
rose-sun opened this issue Aug 20, 2024 · 1 comment
Labels

Comments

@rose-sun
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

2.2.6

Environment

vue: 3.2.6

Reproduction link

Edit on CodeSandbox

Steps to reproduce

如示例,Child Node3已被选中,但是被禁用了,仍然可以通过input框中的 clearIcon 去叉掉这个选项,这不符合禁用逻辑。

What is expected?

被禁用的选项,在input框中不显示 clearIcon,用户无法通过叉号取消选项。

What is actually happening?

antd的2.x版本,不支持自定义 #tagRender 中的closable。除了让项目中的antd版本升级,有没有别的解决办法?

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

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

No branches or pull requests

1 participant