datart icon indicating copy to clipboard operation
datart copied to clipboard

表格组件文字选中&复制

Open nianhua99 opened this issue 1 year ago • 0 comments

Datart Version 1.0.0 rc2

Describe the bug 目前表格组件内的文字,选中并松开鼠标后会自动变成未选中,也就无法完成 选中 -> 复制的动作

To Reproduce

  1. 创建一个表格组件
  2. 选中表格内任意单元格的文字
  3. 选中被取消

Environmental details: (optional, depending on where the bug occurs)

  • Demo环境可复现

Additional context 通过debug发现是draggable 组件执行了 selection.removeAllRanges() 方法,往上追溯,发现在 ChartIFrameLifecycleAdapter 组件中,selectedItems 变更会触发cell的重新渲染

nianhua99 avatar Jul 10 '23 08:07 nianhua99