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

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

Closed
JiveDig opened this issue Jun 7, 2017 · 0 comments
Closed

Comments

@JiveDig
Copy link

JiveDig commented Jun 7, 2017

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*',
    ),
),
jtsternberg added a commit that referenced this issue Jun 7, 2017
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