-
|
neither can I find parameters related to it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
That's because your input field is defined after the call to Coloris.ready(() => {
Coloris({
el: '.coloris',
});
});By the way, this is no |
Beta Was this translation helpful? Give feedback.
-
|
Coloris.ready() didn't work because my case was different. It's a content script and I have already set it as run at document end. I was defining it before Coloris DOM code was imported into the page by my extension. In other words, I had to run it after like you said, just slightly differently. Thank you. I really liked this color picker, for the the design and tranparency setting. Native input color doesn't have that transparency. |
Beta Was this translation helpful? Give feedback.

That's because your input field is defined after the call to
Coloris(). You should change your code so Coloris is called after all the DOM is ready. Alternatively, you could initialize the color picker this way:By the way, this is no
inputoption.