📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
11.48k
stars
1.49k
forks
source link
[Bug Report] ArrayField使用对象字段,存在初始数据时,初始数据无法被删除。先remove初始条目再add会把初始数据加回来。 #3960
Closed
yyl21 closed 1 year ago
I have searched the issues of this repository and believe that this is not a duplicate.
Reproduction link
Steps to reproduce
点进codesandbox 先点remove 再点add 新增的条目跟初始条目数值一样
What is expected?
新增的条目应该只包含默认type, name应该为空
What is actually happening?
新增条目等于初始条目 { name: "aaa", type: "1" }
Package
@formily/react@2.2.29
初始有n条的情况下 add n次都会加上初始第n条