mirror of
https://github.com/rio-labs/rio.git
synced 2026-05-05 10:49:23 -05:00
fix Switcher incorrectly cloning its child element
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user