Skip to content

Commit

Permalink
fix: 修复 Angular Component 节点被移除时没有触发销毁的生命周期 (#3826)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eve-Sama authored Aug 2, 2023
1 parent 2e10838 commit 8cf1ed4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/x6-angular-shape/src/view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export class AngularShapeView extends NodeView<AngularShape> {
node.on('change:data', () =>
this.setInstanceInput(content, componentRef),
)
node.on('removed', () => componentRef.destroy())
}
}
}
Expand Down

0 comments on commit 8cf1ed4

Please sign in to comment.