VisActor / VisActor/VTable

[Bug] 单击编辑表格与树形数据展开子级图标冲突(editCellTrigger:click conflicts with tree data expanding icon)

Open
#3,634 0 comments 0 reactions 1 assignee View on GitHub

@fangsmile is already working on this.

Since Mar 27, 2025.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

Version

1.17.3

Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/vtable-list-table-forked-kc4988

Steps to Reproduce

Image
1.设置表格的编辑器为input-editor
2.columns的第一列设置tree: true 和 editor:'input-editor'
3.当点击树形结构的展开/折叠图标时,会同时将单元格转为编辑状态

Current Behavior

表现 - 树结构正常展开/折叠,点击的单元格变为了编辑状态出现input,并且input框内没有原来的内容

Expected Behavior

期望 -
1.树结构展开/折叠功能正常,单元格不变为编辑状态, 类似于expand icon进行click事件的stopPropagation处理
2.单击单元格内非图标区域将单元格转为编辑内容时,input的default value不丢失 -- 更新发现仅二级标题转为编辑框时的defaultValue没有丢失,一级和三级在切换为input框时均丢失了 defaultValue

Environment
- OS: Windows11 x64
- Browser: Chrome 134.0.6998.119
- Framework: Js
Any additional comments?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.