field-form icon indicating copy to clipboard operation
field-form copied to clipboard

fix: field value updates may fail multiple times

Open lich-yoo opened this issue 4 months ago • 3 comments

fix https://github.com/react-component/field-form/issues/753

// Field input
props.onChange?.('');
props.onChange?.('A');
// Test
expect(form.getFieldValue('input')).toBe('A');

// Result
expect(received).toBe(expected)
Expected: "A"
Received: ""

Summary by CodeRabbit

  • 测试
    • 新增了针对表单字段多次快速变更值的测试用例,确保多次连续变更后最终值能正确反映在表单状态中。
    • 移除了未使用的测试文件导入内容。

lich-yoo avatar Jun 12 '25 03:06 lich-yoo