-
Notifications
You must be signed in to change notification settings - Fork 326
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] FormList 使用 form.setFieldsValue时,里面 select 闪动。 #3218
Comments
👋 @cccnoob,感谢给 TDesign 提出了 issue。 |
试下这个 https://codesandbox.io/p/sandbox/tdesign-react-demo-forked-n4dq28
|
两个问题导致的:
tdesign-react/src/form/FormList.tsx Lines 10 to 14 in bdef4e9
tdesign-react/src/form/FormList.tsx Lines 100 to 111 in bdef4e9
tdesign-react/src/select/hooks/useOptions.ts Lines 16 to 19 in bdef4e9
↑↑↑ 在这里应该初始化 selectedOptions 和其他 state 的值 ↑↑↑ |
我今天晚上会先提一个 pr 修复 Select 的问题 |
多谢,后面我在看看。 关于form.reset 这个方法,在formlist 中存在 重复值的问题
|
好,这个我也会顺带看看 |
这个问题我开一个新的 issue 吧 |
tdesign-react 版本
1.10.0
重现链接
https://codesandbox.io/p/sandbox/tdesign-react-demo-forked-rkhdns?workspaceId=099306a3-a4c4-4984-8128-a0fd86c9d631
重现步骤
重复 点击setVal 按钮,表单中的 select 闪动。
期望结果
No response
实际结果
No response
框架版本
No response
浏览器版本
No response
系统版本
No response
Node版本
No response
补充说明
No response
The text was updated successfully, but these errors were encountered: