cloud-ide-element 1.1.91 → 1.1.92

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11763,24 +11763,9 @@ class CideEleDataGridComponent {
11763
11763
  const newExpanded = new Set(expanded);
11764
11764
  const shouldAutoExpand = this.shouldAutoExpandGroups();
11765
11765
  groups.forEach((group, groupKey) => {
11766
- // Calculate actual row count (excluding nested group headers)
11767
- const countActualRows = (rows) => {
11768
- let count = 0;
11769
- rows.forEach(row => {
11770
- // Check if this row has children (tree structure)
11771
- const children = treeConfig?.enabled ? this.getNestedValue(row, childrenKey) : undefined;
11772
- if (children && Array.isArray(children) && children.length > 0) {
11773
- // Count this row plus its children (recursively)
11774
- count += 1 + countActualRows(children);
11775
- }
11776
- else {
11777
- // Regular row
11778
- count += 1;
11779
- }
11780
- });
11781
- return count;
11782
- };
11783
- const actualRowCount = countActualRows(group.rows);
11766
+ // Calculate actual row count - only count direct rows in this group, not nested children
11767
+ // Nested children are part of the tree structure, not separate group rows
11768
+ const actualRowCount = group.rows.length;
11784
11769
  // Add group header row
11785
11770
  const groupHeader = {
11786
11771
  ...group.rows[0],