Skip to content

Bug: 表单的 handleValuesChange 方法和 defaultValue 有冲突 #7139

@cbombonera

Description

@cbombonera

Version

Vben Admin V5

Describe the bug?

大概是这样的
表单 有两个 Input 类型控件 都给了 defaultValue 默认值 并且非空 如 “你好” 和 “world”

后面 第一个 Input 值 发生 改变了 如 “你好” 改成了 “好的”

handleValuesChange 返回的参数 值 是 两个 而不是 第一个 Input的值 是 “好的”和“world”

感觉有点不合理,第二个给了默认值,也没发生改变 但是第一次 改变其他控件的时候,会把值带出来

Reproduction

System Info

windos

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions