Skip to content

Commit

Permalink
Revert "fix: 修复表格卸载时 G 图形实例未销毁的问题 (#2973)"
Browse files Browse the repository at this point in the history
This reverts commit cc09af8.
  • Loading branch information
lijinke666 committed Nov 14, 2024
1 parent 9007e8e commit 65a58a6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/s2-core/src/facet/base-facet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -828,14 +828,14 @@ export abstract class BaseFacet {
const child = children[i];

if (child instanceof Group) {
child.destroyChildren();
child.removeChildren();
} else {
child.destroy();
children[i].remove();
}
}

this.foregroundGroup.destroyChildren();
this.backgroundGroup.destroyChildren();
this.foregroundGroup.removeChildren();
this.backgroundGroup.removeChildren();
}

scrollWithAnimation = (
Expand Down Expand Up @@ -1527,7 +1527,7 @@ export abstract class BaseFacet {
(cell) => cell.name === `${i}-${j}`,
);

mountedDataCell?.destroy();
mountedDataCell?.remove();
});

DebuggerUtil.getInstance().logger(
Expand Down

0 comments on commit 65a58a6

Please sign in to comment.