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] 带初始值的ArrayTable嵌套于ArrayCards中使用时,在ArrayTable新建一行,已有的行也会触发reactions #4037

Closed
1 task done
sTeADone opened this issue Nov 29, 2023 · 3 comments

Comments

@sTeADone
Copy link

sTeADone commented Nov 29, 2023

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

Reproduction link

Edit on CodeSandbox

Steps to reproduce

两个ArrayTable,初始第一行A3随便输入点什么
分别新建一行

What is expected?

第一行不变

What is actually happening?

ArrayCards内的ArrayTable第一行会触发联动清空A3
ArrayCards外的ArrayTable第一行不会触发联动

Package

@formily/[email protected]


只在第一次新建行时出现 再次新建不会出现

@janryWang
Copy link
Collaborator

codesandbox 挂了

@sTeADone
Copy link
Author

sTeADone commented Dec 6, 2023

我把antd降回5.11.5 codesandbox 可以跑了

@janryWang
Copy link
Collaborator

对于这种清空场景需要改成主动联动,被动联动是会出现这种问题的,因为被动联动会一直触发,主动联动的方式可以直接配一个 onChange 事件来清空,也可以写 effects

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

2 participants