Automattic / Iris

A(n awesome) Color Picker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set color to empty

Ninos opened this issue · comments

Hey there,
it's not possible to reset color of the iris color picker to an empty value:
jQuery( element ).wpColorPicker( 'color', '' ); is not working here.
I solved it in following way:
jQuery( this ).find( '.wp-color-result' ).css( 'background-color', '' );

On initialization it works fine.

PS: I know it's the wp-color-picker, in iris it would be something like that:
jQuery( element ).iris( 'color', '' );
jQuery( this ).find( '.iris-result' ).css( 'background-color', '' );