Skip to content

[Bug] 可编辑单元格切换到不可编辑单元格时,会报错Cannot read properties of undefined (reading 'prepareEdit') #4871

@liuhualin95

Description

@liuhualin95

Version

版本是@visactor/react-vtable@1.22.9

Link to Minimal Reproduction

https://www.visactor.com/vtable/playground?specId=1092031127&timestamp=1766997152101&version=1.22.9&theme=light

Steps to Reproduce

Image

148行注释即可复现
Image

Current Behavior

控制台报错 Uncaught TypeError: Cannot read properties of undefined (reading 'prepareEdit')
at index-C5ujODrA.js:226:57770

Expected Behavior

切换时控制台不应报错

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bpbpbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions