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

[Form] 1.9.3版本FormItem在Form外设置了name属性会抛异常 #3182

Closed
hanjunspirit opened this issue Nov 5, 2024 · 4 comments
Closed
Labels
to be published fixed, not be published

Comments

@hanjunspirit
Copy link

tdesign-react 版本

1.9.3

重现链接

No response

重现步骤

如果在Form组件外面使用FormItem组件且设置了name属性会抛异常,之前的版本没抛异常
如单独使用这个组件<FormItem label="test" name="test"></FormItem>,未包裹在Form中时

QQ截图20241105155147

期望结果

不抛异常,正常使用

实际结果

抛异常

框架版本

React(18.3.1)

浏览器版本

Chrome

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Nov 5, 2024

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

@hanjunspirit hanjunspirit changed the title [Form] FormItem在Form外设置了name属性会抛异常 [Form] 1.9.3版本FormItem在Form外设置了name属性会抛异常 Nov 5, 2024
l123wx added a commit to l123wx/tdesign-react that referenced this issue Nov 5, 2024
@uyarn uyarn added the to be published fixed, not be published label Nov 6, 2024
@uyarn
Copy link
Collaborator

uyarn commented Nov 6, 2024

可以先用下 tdesign-react@1.9.4-alpha.1

@hanjunspirit
Copy link
Author

可以先用下 tdesign-react@1.9.4-alpha.1

好的,谢谢,我们暂时去掉了这种写法来规避这问题

@uyarn
Copy link
Collaborator

uyarn commented Nov 15, 2024

fix 1.10.0

@uyarn uyarn closed this as completed Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

2 participants