Replies: 1 comment 5 replies
-
|
My guess is, not all the DOM elements are available when you initialize setTimeout(() => {
Coloris({
el: ".color-picker",
});
}, 250); |
Beta Was this translation helpful? Give feedback.
5 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.
-
I have a browser extension in which I'm trying to use coloris for pages which are dynamically generated. (Understand: things are created after the DOM is loaded).
So far I have implemented it like this:
Then in my code, after all the page element are generated, I do:
The results are that the color fields get their little color swash next to them, but when I try to click the field, I get the following error (using Chrome):
If I comment out line 794, I get no error but nothing shows up either.
Any idea what I'm doing wrong ?
Beta Was this translation helpful? Give feedback.
All reactions