Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open portal on popup #142

Closed
metehus opened this issue Jul 10, 2022 · 1 comment
Closed

Open portal on popup #142

metehus opened this issue Jul 10, 2022 · 1 comment

Comments

@metehus
Copy link

metehus commented Jul 10, 2022

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

@metehus
Copy link
Author

metehus commented Jul 10, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant