mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): cancel transform/filter when deleting entity
This commit is contained in:
@@ -197,7 +197,13 @@ export abstract class CanvasEntityAdapterBase<
|
||||
this.subscriptions.forEach((unsubscribe) => unsubscribe());
|
||||
this.subscriptions.clear();
|
||||
this.renderer.destroy();
|
||||
if (this.transformer.$isTransforming.get()) {
|
||||
this.transformer.stopTransform();
|
||||
}
|
||||
this.transformer.destroy();
|
||||
if (this.manager.filter.$adapter.get()?.id === this.id) {
|
||||
this.manager.filter.cancelFilter();
|
||||
}
|
||||
this.konva.layer.destroy();
|
||||
this.manager.deleteAdapter(this.entityIdentifier);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user