Skip to content

Commit 53adf75

Browse files
author
Alan Fleming
committed
DirectionalLinkModel - remove link to source and target on cleanup.
1 parent 2baf3d6 commit 53adf75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/controls/src/widget_link.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,12 @@ export class DirectionalLinkModel extends CoreWidgetModel {
8585
undefined
8686
);
8787
this.stopListening(this.sourceModel, 'destroy', undefined);
88+
this.set('source', [null, '']);
8889
}
8990
if (this.targetModel) {
9091
this.stopListening(this.targetModel, 'destroy', undefined);
92+
this.set('target', [null, '']);
93+
this.save_changes();
9194
}
9295
}
9396

0 commit comments

Comments
 (0)