[Bug] In the vtable tree structure data, the collapse and expansion button will clear the selected cells
@fangsmile is already working on this.
Since Dec 4, 2025.
- 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
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.