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

Doesn't works with repeatable groups #2

Closed
ctlcltd opened this issue May 1, 2015 · 1 comment
Closed

Doesn't works with repeatable groups #2

ctlcltd opened this issue May 1, 2015 · 1 comment

Comments

@ctlcltd
Copy link

ctlcltd commented May 1, 2015

It doesn't works with repeatable groups, to reflect the function cmb.newRowHousekeeping() in CMB2 javascript's (that resets color pickers before to append in a new row), is required to add the html class .cmb2-colorpicker to the color picker input field.

So in jw-cmb2-rgba-colorpicker.php

echo $field_type_object->input( array(
    'class'              => 'cmb2-colorpicker color-picker', // instead color-picker only
    'data-default-color' => $field->args( 'default' ),
    'data-alpha'         => 'true'
) );
@JayWood JayWood closed this as completed in 523b7f6 May 4, 2015
@JayWood
Copy link
Owner

JayWood commented May 4, 2015

Thanks @leolweb I've not had a need for repeatables so I would've probably never ran into this.

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

2 participants