diff --git a/package.json b/package.json index 3e984e3f4..b151e2b0a 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ }, "dependencies": { "@rc-component/async-validator": "^5.0.3", - "@rc-component/util": "^1.5.0", + "@rc-component/util": "^1.6.2", "clsx": "^2.1.1" }, "devDependencies": { diff --git a/tests/list.test.tsx b/tests/list.test.tsx index 8a207e240..8c312d313 100644 --- a/tests/list.test.tsx +++ b/tests/list.test.tsx @@ -1139,4 +1139,36 @@ describe('Form.List', () => { { list: [{ name: 'John', tags: ['react', 'ts', 'redux'] }] }, ); }); + + it('should not drop list items when updating list item field', async () => { + const onValuesChange = jest.fn(); + + const { getAllByRole } = render( +