Skip to content

[Bug] 表格树形数据拖拽最后一个树形节点改变位置引发报错 drag last tree node data causes error #3645

@haha4445

Description

@haha4445

Version

1.17.3

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/vtable-treedata-draglasttreenodeerror-xpjp7z

Steps to Reproduce

1.代码主要来源于官网树形表格,改了部分树形结构数据和增加了rowSeriesNumber拖拽配置
2.将最后一行树形节点拖拽上移一行

Image

Current Behavior

表格无法操作,控制台报错 Uncaught TypeError: state.checkedState.get(...) is undefined
syncCheckedState checkbox.js:47
syncCheckedState state.js:732
createCheckbox checkbox-cell.js:72
createCheckboxCellGroup checkbox-cell.js:65
createCell cell-helper.js:77

Expected Behavior

不报错正常拖动

Environment

- OS: Win 11 x64
- Browser: Chrome 134.0.6998.178(正式版本) (64 位)
- Framework: Js

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions