Events Don't Work
jwbats opened this issue · comments
Jay Bats commented
The change event in this code does not get called:
$('input.designer_ColorPicker').spectrum({
flat:true,
showInitial:false,
showButtons:false,
showAlpha:true,
clickoutFiresChange: true,
showInput: true,
preferredFormat: 'rgb',
change: function(color) {
debugger; // never hit
console.log(color.toHexString()); // never logs
}
});
The documentation provides an alternative way of setting event listeners with jquery. This also does not work.
Jay Bats commented
My bad entirely. I was using the 'change' event when I actually needed the 'move' event. Never mind.