Skip to content

Commit

Permalink
chore(core): 名称更改 Control组件componentWillUnmount=>destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
wbccb authored and boyongjiong committed Oct 29, 2024
1 parent 9f34449 commit b4dc07b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/util/drag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class StepDrag {
this.isDragging = false
}

componentWillUnmount = () => {
destroy = () => {
if (this.isStartDragging) {
// https://github.com/didi/LogicFlow/issues/1934
// https://github.com/didi/LogicFlow/issues/1926
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/view/Control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class ResizeControl extends Component<
}

componentWillUnmount() {
this.dragHandler.componentWillUnmount()
this.dragHandler.destroy()
}

updateEdgePointByAnchors = () => {
Expand Down

0 comments on commit b4dc07b

Please sign in to comment.