laktek / really-simple-color-picker

Simple Color Picker written in jQuery.
http://laktek.com/2008/10/27/really-simple-color-picker-in-jquery
MIT License
179 stars 65 forks source link

Picker not changing original input element. #24

Open georgecoltart opened 10 years ago

georgecoltart commented 10 years ago

Im using this in a rails app and I'm finding it strange that if a user types a HEX value, then clicks outside of the picker (which closes it) the original (currently hidden) input field does not update with the new hex value, even though the color itself has changed.

If the user enters a hex value and presses RETURN, it seems to have the correct behaviour, Im wondering if it's supposed to do the same in the above scenario?

Is there a callback for OPEN/CLOSE I could use which would allow me to assign the new hex to the input when the picker is closed?