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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user