diff --git a/src/dom_components/model/Component.ts b/src/dom_components/model/Component.ts index 9f77a5fe3b..afd69ab21b 100644 --- a/src/dom_components/model/Component.ts +++ b/src/dom_components/model/Component.ts @@ -508,7 +508,7 @@ export default class Component extends StyleableModel { * component.replaceWith('
Some new content
'); * // -> Component */ - replaceWith(el: Component) { + replaceWith(el: Component | String) { const coll = this.collection; const at = coll.indexOf(this); coll.remove(this);