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

[tag-input] TagInput 不能与 Form 的 disabled 属性联动 #4352

Closed
xiaojueshi opened this issue Jun 28, 2024 · 1 comment · Fixed by #4353
Closed

[tag-input] TagInput 不能与 Form 的 disabled 属性联动 #4352

xiaojueshi opened this issue Jun 28, 2024 · 1 comment · Fixed by #4353
Labels
to be published to be published

Comments

@xiaojueshi
Copy link
Contributor

tdesign-vue-next 版本

1.9.6

重现链接

No response

重现步骤

当在 Form 中使用 TagInput 时,Form 组件的 disabled 属性无法影响到 TagInput 组件。

image

期望结果

Form 组件的 disabled 属性影响到 TagInput 组件。

实际结果

No response

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

👋 @xiaojueshi,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

xiaojueshi added a commit to xiaojueshi/tdesign-vue-next that referenced this issue Jun 28, 2024
- 将 disabled 的默认值设置为undefined,以允许正确使用基于组件状态的条件呈现。

- 重构标签输入。tsx和useTagList。tsx文件来使用useDisabled钩子并删除冗余的禁用状态处理。

BREAKING CHANGE: disabled 现在默认为undefined而不是false,这可能会影响依赖先前默认行为的消费者

closed Tencent#4352
@uyarn uyarn added the to be published to be published label Jun 29, 2024
@liweijie0812 liweijie0812 reopened this Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published to be published
Projects
None yet
4 participants