destroy after removal from controller host

This commit is contained in:
Niels Lyngsø
2023-07-25 16:04:22 +02:00
parent 7ac1754361
commit e60ba46468

View File

@@ -29,9 +29,9 @@ export class UmbContextProviderController<T = unknown> extends UmbContextProvide
}
public destroy() {
super.destroy();
if (this.#host) {
this.#host.removeController(this);
}
super.destroy();
}
}