Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set color to empty #53

Open
Ninos opened this issue Mar 3, 2016 · 0 comments
Open

Set color to empty #53

Ninos opened this issue Mar 3, 2016 · 0 comments

Comments

@Ninos
Copy link

Ninos commented Mar 3, 2016

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', '' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant