You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constcontent=document.createDocumentFragment();// ... create some template// content.appendChild(item1)// content.appendChild(item2)tippy.setContent(content)
Right now it's only possible to use string or HTMLElement as content value. Setting DocumentFragment as content doesn't work and we'll see [object DocumentFragment] instead of our HTML template.
Solution
Current solution is to wrap our content in div element instead of fragment.
The text was updated successfully, but these errors were encountered:
What's wrong with using a wrapping div tag? Generally fragments are useful to keep markup correct but in this context it doesn't matter, since the parent is just a div.
Problem
Right now it's only possible to use string or HTMLElement as content value. Setting DocumentFragment as content doesn't work and we'll see
[object DocumentFragment]
instead of our HTML template.Solution
Current solution is to wrap our content in div element instead of fragment.
The text was updated successfully, but these errors were encountered: