ember-tether icon indicating copy to clipboard operation
ember-tether copied to clipboard

`bodyElementId` does not allow to use `<body>`

Open Turbo87 opened this issue 5 years ago • 0 comments

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? 🤔

Turbo87 avatar Dec 16 '19 11:12 Turbo87