Skip to content

Commit

Permalink
fix: clear group and addGroup out of view problem, closes: antvis#638 (
Browse files Browse the repository at this point in the history
…antvis#643)

Co-authored-by: shiwu <shiwu.wyy@antgroup.com>
  • Loading branch information
Yanyan-Wang and shiwu authored Oct 26, 2020
1 parent 26a8cc2 commit e7c7bf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/g-canvas/src/util/draw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function clearChanged(elements: IElement[]) {
const el = elements[i];
el.cfg.hasChanged = false;
// 级联清理
if (el.isGroup()) {
if (el.isGroup() && !el.destroyed) {
clearChanged(el.cfg.children);
}
}
Expand Down

0 comments on commit e7c7bf6

Please sign in to comment.