Replies: 1 comment 6 replies
-
|
Hmm, I'm not sure it's possible to make this compatible with shadow DOM without a significant changes to the code base. If you are able to make it work, could I take a look at your code? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently implementing this in a project where all functionality is inside a shadow dom. There are several querySelectors calls in this project that are done with document.querySelector , and if the color picker attached inside a shadow dom they fail cause the shadow dom elements are not visible this way.
I would suggest having something like this , where the domTree option defaults to document if not set , and modifying the library querySelectors accordingly. I am down to creating a pull request for this as I will definitely be implementing this in the proj i am working on .
Beta Was this translation helpful? Give feedback.
All reactions