bgrins / spectrum

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

When used as a polyfill, addEventListener does not work. #497

Open bofh69 opened 7 years ago

bofh69 commented 7 years ago
<input type="color" id="colour_lamp">
let colour_lamp_el = document.getElementById("colour_lamp");
colour_lamp_el.addEventListener("change", sendRGB.bind(this), { passive: true});