fix Switcher incorrectly cloning its child element

This commit is contained in:
Aran-Fey
2024-07-21 18:57:53 +02:00
parent a7befd3e03
commit 637ea82e3a
+1 -1
View File
@@ -101,7 +101,7 @@ export class SwitcherComponent extends ComponentBase {
// Thus, fetch the component by its id, rather than using the contained
// HTML node.
let oldComponent = componentsById[this.state.content!]!;
let oldElementClone = oldComponent.element.cloneNode(
let oldElementClone = oldComponent.outerElement.cloneNode(
true
) as HTMLElement;