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.43k stars 103 forks source link

[Bug] 自定义编辑器validateValue方法返回false时仍能点击选中其他单元格 #1974

Closed CrabSAMA closed 2 weeks ago

CrabSAMA commented 3 weeks ago

Version

1.4.0

Link to Minimal Reproduction

https://visactor.io/vtable/demo/edit/custom-editor

Steps to Reproduce

https://visactor.io/vtable/demo/edit/custom-editor 在官方示例中,自定义editor实现validateValue方法,此处为了简单演示直接返回false

validateValue() {
  return false;
}

双击单元格进入编辑状态后,模拟校验不通过的场景(直接返回false),此时用户习惯是直接点击外层取消编辑状态。 20240624143316_rec_

Current Behavior

现状是:不取消编辑状态,其他单元格被选中

Expected Behavior

预期是:不取消编辑状态,不选中其他单元格,保留当前编辑状态的单元格选中状态

Environment

- OS:macOS 14.1.1 (23B81)
- Browser: edge 126.0.6478.62
- Framework: Vue@2.6.12 & VTable@1.4.0

Any additional comments?

No response

fangsmile commented 3 weeks ago

看看 是否可以尝试解决这个问题 贡献代码提pr给我们呢? 可以加飞书群如有不清楚的代码逻辑 可以沟通 image