Open YannLynn opened 1 year ago
@pointhalo any progress?
@pointhalo any progress?
Sorry, don’t have time to look at ArrayField related issues recently. I'll try to keep track of this issue this month
This is a case under specific recurrence conditions and will only appear when allowEmpty
is enabled.
If your scene does not have a strong demand for this, you can remove this prop first as a temporary solution.
Is there an existing issue for this?
Which Component
ArrayField
Semi Version
latest
Current Behavior
点击 增加一行,再点击 「change」 删除最后一行数据,FormState 展示为
{"values":{"rules":[{"name":"Semi D2C","role":"Engineer"},{"name":"Semi C2D","role":"Designer"},null]},"errors":{},"touched":{}}
即删除的最后一行数据变为了 null
Expected Behavior
点击 增加一行,再点击 「change」 删除最后一行数据,FormState 展示为
{"values":{"rules":[{"name":"Semi D2C","role":"Engineer"},{"name":"Semi C2D","role":"Designer"}]},"errors":{},"touched":{}}
Steps To Reproduce
将代码粘贴进官网即可复现
ReproducibleCode
Environment
Anything else?
No response