bgrins / spectrum

The No Hassle JavaScript Colorpicker
https://bgrins.github.io/spectrum/
MIT License
2.32k stars 588 forks source link

Container does not appears with 2.0.0 version #561

Open londonuk371 opened 4 years ago

londonuk371 commented 4 years ago

Hello,

As mentioned in https://seballot.github.io/spectrum/ I have copied/pasted the CDN to insert Spectrum in my project:

<script src="https://cdn.jsdelivr.net/npm/spectrum-colorpicker2@2.0.0/dist/spectrum.min.js">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/spectrum-colorpicker2@2.0.0/dist/spectrum.min.css">

But the colour in the container (sp-colorize) is not displayed. I have removed everything from the page to check if there was any conflict with another plugin or one of my JS but same result.

I tried some other CDN sources (cdnjs.com) but same result: no colour in container (sp-colorize).

So I recovered the source of Spectrum from https://seballot.github.io/spectrum/:

And everything was working fine!

Nice job, this colour picker is really great :)

SlimGary commented 4 years ago

Same issue here. Hopefully for once , I went to the Issue tab of the project, I was going crazy ^^