VisActor / VTable

VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
https://visactor.io/vtable
MIT License
1.57k stars 129 forks source link

[Bug]设置表头不可选中,向上方向键到达第一行后表现异常 #2083

Open mzhang-eric opened 1 month ago

mzhang-eric commented 1 month ago

复现步骤:

  1. 方向键切换选中单元格 使用上述官网示例,option配置如下
  const option = {
    records:data,
    columns,
    widthMode:'standard',
    frozenColCount:1,
    overscrollBehavior:'none',
    keyboardOptions:{
      moveEditCellOnArrowKeys:true
    },
    editor:'input-editor',
    // 设置表头不可选中
    select: {
        disableHeaderSelect: true,
    },
  };
  1. 修改配置后,任意选中一个单元格,持续按向上方向键,当选中的单元格到达第一行之后,继续按向上键,此时选中状态消失,似乎表格也失去了焦点,按向下方向键,也没有反应

因此,在设置了表头不可选中时,按向上方向键到达第一行之后,此时再按向上键,是否应该停留在第一行?