datart
datart copied to clipboard
表格组件文字选中&复制
Datart Version 1.0.0 rc2
Describe the bug 目前表格组件内的文字,选中并松开鼠标后会自动变成未选中,也就无法完成 选中 -> 复制的动作
To Reproduce
- 创建一个表格组件
- 选中表格内任意单元格的文字
- 选中被取消
Environmental details: (optional, depending on where the bug occurs)
- Demo环境可复现
Additional context
通过debug发现是draggable 组件执行了 selection.removeAllRanges()
方法,往上追溯,发现在 ChartIFrameLifecycleAdapter
组件中,selectedItems
变更会触发cell的重新渲染