bgrins / spectrum

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

Change event isn't fired #443

Closed mreinhardt24 closed 8 years ago

mreinhardt24 commented 8 years ago

http://codepen.io/EpoX/pen/VjJZyz

Following use case in the codepen: If I open the colorpicker and change the color via the input field to '#000000' and press ENTER the color of the div changes correctly. If I now change the color back to '#ff0000' via the input type and hit ENTER the 'change' event isn't fired. Only the color of the colorpicker changes but the object remains the same.

Kind regards, EpoX

bgrins commented 8 years ago

Hi, can you try loading the latest master version and see if the problem is resolved (https://rawgit.com/bgrins/spectrum/master/spectrum.js)?

mreinhardt24 commented 8 years ago

Hey,

thanks for the fast answer. With the latest master it works, expect that I have to hear for the move instead of the change event, because the move event gets fired when hitting ENTER.