PitPik / colorPicker

Advanced javaScript color picker and color conversion / calculation (rgb, hsv, hsl, hex, cmyk, cmy, XYZ, Lab, alpha, WCAG 2.0, ...)
http://www.dematte.at/colorPicker/
MIT License
573 stars 136 forks source link

throw a error if input have not default color value #36

Open huyinghuan opened 8 years ago

huyinghuan commented 8 years ago

colors.js in line: 221

colors[typ] = convert[from + '2' + typ](colors[from]);
PitPik commented 8 years ago

Please give me more information. This is not replicable for me. If I have a <input class="color" /> instead of <input class="color" value="#B6BD79" /> it falls back to #FFFFFF but it doesn't throw an error.