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
I think to support shadow dom, we need an option for "document".
There is a lot of "document". For usage in a shadow it sould be the current shadowroot.
@yairEO
I mostly use web components to develop internal applications. To use tagify In a custom web component. It should not depend on document.body. (it doesn't work with document.body.contains).
Prerequisites
💥 Demo Page
I can do it in some days, i need some time to build a simple lit element for this.
Explanation
There are a lot of document.body checks in the code which doesn't work in shadowdom. It should be the appendTarget element:
https://github.com/yairEO/tagify/blob/master/src/parts/dropdown.js#L155
https://github.com/yairEO/tagify/blob/master/src/parts/dropdown.js#L218
Checking in the document.body instead of appendTarget
A lot of glitches.
The text was updated successfully, but these errors were encountered: