kallookoo / wp-color-picker-alpha

Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
GNU General Public License v2.0
131 stars 88 forks source link

Alpha slider doesn't change when color is set with javascript #9

Closed TheoL closed 3 years ago

TheoL commented 7 years ago

Hello,

I am using something like:

$('#my-color-picker').iris('color', 'rgba(100,100,100,0.25)');

to change the color of the color-picker when some event happens.

The color is set correctly, but the alpha slider stays at 100%. (the alpha slider jumps to the correct position if I click anywhere inside the color picker, e.g. change the color)

dbo90 commented 6 years ago

+1 for this one, the alpha slider doesn't update when we change the colorpicker via Javascript

kallookoo commented 6 years ago

ok, I'll see what I can do, in the new version

kallookoo commented 3 years ago

Hi, Try the branch 3.0.0 and comment please.

kallookoo commented 3 years ago

Checked and changes perfectly. Using wpColorPicker( 'color', 'value' ) and iris( 'color', 'value' ).