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

bodyElementId does not allow to use <body> #69

Open
Turbo87 opened this issue Dec 16, 2019 · 0 comments
Open

bodyElementId does not allow to use <body> #69

Turbo87 opened this issue Dec 16, 2019 · 0 comments

Comments

@Turbo87
Copy link
Collaborator

Turbo87 commented Dec 16, 2019

It seems that by default Tether.js positions the elements in-place and using bodyElementId allows us to use a different parent element, unrelated to the DOM position where the component is used.

Unfortunately, using getElementById() means that only elements with an actual id can be used, but not e.g. the <body> element.

Is this intentional? Would it be better to use querySelector() instead? 🤔

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