myliang / x-spreadsheet

The project has been migrated to @wolf-table/table https://github.com/wolf-table/table
https://myliang.github.io/x-spreadsheet
MIT License
13.98k stars 1.67k forks source link

下拉框选择选项后,没有触发cell–edited事件 #652

Open zhiming429438709 opened 1 year ago

zhiming429438709 commented 1 year ago

配置validations后,有下拉框了,但是下拉选择选项没有触发cell–edited事件

zhiming429438709 commented 1 year ago

可以了,自己自定义了一个事件 validation–selected 在editor.js里面的suggestItemClick添加 this.sheet.trigger(自定义事件名称,回调函数)就可以了 实例化editor的时候,记得把sheet的实例传给editor