Skip to content

[Bug] 添加 icon 事件时报错 #4989

@dmqweb

Description

@dmqweb

Version

latest

Link to Minimal Reproduction

https://www.visactor.io/vtable/demo/custom-render/custom-icon

Steps to Reproduce

1.使用 input editor 并且添加上 icon
2.用 tableInstance 实例绑定 icon 事件
3.点击 icon 容易触发报错

Current Behavior

icon绑定事件容易触发报错:
input-editor.js:62 Uncaught TypeError: Cannot read properties of undefined (reading 'value')
at InputEditor.getValue (input-editor.js:62:1)
at EditManager.completeEdit (edit-manager.js:116:1)
at Group. (table-group.js:161:1)
at EventManager.notifyListeners (event-manager.js:281:1)
at EventManager.notifyTarget (event-manager.js:201:1)
at EventManager.propagate (event-manager.js:186:1)
at EventManager.dispatchEvent (event-manager.js:161:1)
at EventManager.onPointerDown [as fn] (event-manager.js:25:1)
at EventManager.mapEvent (event-manager.js:174:1)
at EventSystem.onPointerDown (event-system.js:27:1)
at HTMLCanvasElement.wrappedListener (event-listener-manager.js:12:1)

Expected Behavior

事件触发具有稳定性

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions