📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
11.32k
stars
1.48k
forks
source link
[Bug Report] antd-v5 ArrayTable 条目拖曳至表格外后索引为NaN #3971
Closed
tmsi10 closed 1 year ago
Reproduction link
Steps to reproduce
What is expected?
What is actually happening?
从console看见校验错误且条目索引为NaN
Package
@formily/antd-v5@1.1.1
onDragEnd
的DragEndEvent.over
在拖曳至容器外时为nullSortableContainer
把over?.id
减1 变成NaN
ArrayTable
里的组件在onDragEnd
调用ArrayField.move(oldIndex, newIndex /* NaN */);