Skip to content
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

[Bug Report] ArrayFields中reactions的value不符合预期 #4196

Open
1 task
RushKoala opened this issue Aug 2, 2024 · 1 comment
Open
1 task

[Bug Report] ArrayFields中reactions的value不符合预期 #4196

RushKoala opened this issue Aug 2, 2024 · 1 comment

Comments

@RushKoala
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

给【平均分配值List】添加三项,第一、第二项33,第三项34,删除最后一项,子Field中reactions触发分配两个50,ArrayField中reactions使用的value引用是旧的[{number: 33}, {number: 33}],导致total !== 100 校验错误触发

What is expected?

ArrayField中reactions收集的value是旧的[{number: 33}, {number: 33}]

What is actually happening?

ArrayField中reactions收集的value = [{number: 50}, {number: 50}]

Package

@formily/antd@2.3.2


@RushKoala
Copy link
Author

仅在删除最后一项时出现,删除其他项表现正常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant