romkor/svelte-portal

Open portal on popup

metehus opened this issue · 1 comments

Goal

I wan't to open a new window in popup mode and modify it's content via a svelte component, but it didn't work, with the error of the target isn't a HTMLElement or a selector

Example

Stackblitz link

Expected behaviour

Be possible to render a component inside an opened popup

Got it to work! The solution was to create an element on the current document, and append it to the window document