element mixin destroys the reference to the localization controller too early causing "call to undefined" errors. It doesn't need to change the reference because the lit lifecycle will handle the destruction automatically

Co-authored-by: Lone Iversen <108085781+loivsen@users.noreply.github.com>
This commit is contained in:
Jacob Overgaard
2024-03-05 13:31:11 +01:00
parent af9fd7a4c1
commit 2fc099bfd4

View File

@@ -109,11 +109,6 @@ export const UmbElementMixin = <T extends HTMLElementConstructor>(superClass: T)
});
return promise;
}
destroy(): void {
super.destroy();
(this.localize as any) = undefined;
}
}
return UmbElementMixinClass as unknown as HTMLElementConstructor<UmbElement> & T;