fixing moving observable in DOM

This commit is contained in:
Niels Lyngsø
2023-03-15 14:02:11 +01:00
parent 4e5900c25f
commit ab08024e7f
3 changed files with 9 additions and 2 deletions

View File

@@ -12,7 +12,8 @@ export class UmbObserver<T> {
// Notice controller class implements empty hostConnected().
hostDisconnected() {
this.#subscription.unsubscribe();
// No cause then it cant re-connect, if the same element just was moved in DOM.
//this.#subscription.unsubscribe();
}
destroy(): void {