Skip to content

Commit 8cf1ed4

Browse files
authored
fix: 修复 Angular Component 节点被移除时没有触发销毁的生命周期 (#3826)
1 parent 2e10838 commit 8cf1ed4

File tree

1 file changed

+1
-0
lines changed
  • packages/x6-angular-shape/src

1 file changed

+1
-0
lines changed

packages/x6-angular-shape/src/view.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export class AngularShapeView extends NodeView<AngularShape> {
6969
node.on('change:data', () =>
7070
this.setInstanceInput(content, componentRef),
7171
)
72+
node.on('removed', () => componentRef.destroy())
7273
}
7374
}
7475
}

0 commit comments

Comments
 (0)