Skip to content

text_small and text_medium fields don't populate correctly when editing #20

@JiveDig

Description

@JiveDig

Simple solution is to just use a text field.

When i use text_small or text_medium (tested standard, and as a number field), I can create the shortcode fine, but when I got to edit the shortcode it does not populate the value correctly.

A workaround that I'm currently using is to just add the small class manually

array(
    'name'       => __( 'Number', 'mai-pro-engine' ),
    'desc'       => __( 'The number of entries', 'mai-pro-engine' ),
    'default'    => 12,
    'id'         => 'number',
    'type'       => 'text',
    'attributes' => array(
        'class'   => 'cmb2-text-small',
        'type'    => 'number',
        'pattern' => '\d*',
    ),
),

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