Skip to content

Doesn't works with repeatable groups #2

@ctlcltd

Description

@ctlcltd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions