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] shouldUpdate 内表单组件串数据 #2879

Open
duxphp opened this issue May 6, 2024 · 2 comments
Open

[Form] shouldUpdate 内表单组件串数据 #2879

duxphp opened this issue May 6, 2024 · 2 comments
Labels
🐞 bug Something isn't working 💭 discussion we are discussing

Comments

@duxphp
Copy link
Contributor

duxphp commented May 6, 2024

tdesign-react 版本

1.7.0

重现链接

https://codesandbox.io/p/sandbox/tdesign-react-demo-forked-jr45f7

重现步骤

使用 shouldUpdate 监听 type 数值切换,并且填写类型一数据,然后切换到类型二, shouldUpdate 内的类型一表单数据会被替换到类型二的表单内

期望结果

各自Form.FormItem控制各自的数据

实际结果

两边数据串了

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented May 6, 2024

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

@HaixingOoO HaixingOoO added the 🐞 bug Something isn't working label May 7, 2024
@NWYLZW
Copy link
Collaborator

NWYLZW commented May 14, 2024

加个 key 试试看

@HaixingOoO HaixingOoO added the 💭 discussion we are discussing label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 💭 discussion we are discussing
Projects
None yet
Development

No branches or pull requests

3 participants