Skip to content

[Form] 调用 form.reset 后,FormList 组件下的值会出现重复的情况 #3262

Description

@l123wx

tdesign-react 版本

1.10.0

重现链接

https://codesandbox.io/p/sandbox/tdesign-react-demo-form-reset-bug-forked-mg7snh

重现步骤

关于form.reset 这个方法,在formlist 中存在 重复值的问题
image

先删除表单中一行,然后点击 setVal, 会出现 重复的数据
image

期望结果

调用 reset 方法后,formList 下面的 formItem 能正确重置为初始值

实际结果

调用 reset 方法后,formList 下面的 formItem 出现值重复的情况

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    to be publishedfixed, not be published🐞 bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    已发布

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions