VisActor / VisActor/VTable

[Bug] In the vtable tree structure data, the collapse and expansion button will clear the selected cells

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

@fangsmile is already working on this.

Since Dec 4, 2025.

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

Description

Version

1.20.3

Link to Minimal Reproduction

No

Steps to Reproduce

Add tree: true to a column in columns, where there are children in the records data, then collapse it. Select a sub cell, and click collapse to expand, which will clear the previously selected cell

const columns = [
{
field: ''resourceType',
title: 'ResourceType',
tree: true,
},
{
field: 'resourceName',
title: 'ResourceName',
},
};

const records = [
{ resourceType: 'a',
id: '1',
children: [
{ resourceType: 'a', resourceName: 'xxx1', id: '1-1'}
{ resourceType: 'a', resourceName: 'xxx2', id: '1-2'}
...,
},
{ resourceType: 'b',
id: '2',
children: [
{ resourceType: 'b', resourceName: 'yxxx1', id: '2-1'}
{ resourceType: 'b', resourceName: 'yxxx2', id: '2-2'}
...,
},
];

Current Behavior
  1. In the vtable tree structure data, click the collapse and expand buttons to clear the previously selected cells
    Set tree: true in column
Expected Behavior

Do not clear previously selected cells when folding and unfolding tree data

Environment
- OS:
- Browser:
- Framework:
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.