Skip to content

Can't use elementToAppend when embedding sandbox #2885

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

Closed
codetheweb opened this issue Jul 13, 2023 · 0 comments · Fixed by #2886
Closed

Can't use elementToAppend when embedding sandbox #2885

codetheweb opened this issue Jul 13, 2023 · 0 comments · Fixed by #2886

Comments

@codetheweb
Copy link
Contributor

codetheweb commented Jul 13, 2023

Because domID in the sandbox config takes precedence over elementToAppend:

const element = "domID" in config ? document.getElementById(config.domID) : (config as any).elementToAppend

and domID is always given a default of "":

elementToAppend will never work

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

Successfully merging a pull request may close this issue.

1 participant