-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Hi, when I do new MyComponent({target: document.getElementById('someId')}) then the new component gets added to the element instead of replacing it.
I would love to have a way to replace the target, f.x new MyComponent({target: document.getElementById('someId'), replace: true}). This would give my users a better experience in situations where I'm adding Svelte components to content that they already see in their browser.
m4rrc0, jimafisk, azmeuk and KieranP
Metadata
Metadata
Assignees
Labels
No labels