redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Sortable field loses sort when using "validate"

Open paulthecoder opened this issue 11 years ago • 1 comments

Redux: v.3.5.4.9 WordPress: 4.2.2

The sortable field reverts back to the original sort order of options. I've nailed it down to "validate" being the culprit. When I get rid of it, the sortable fields works fine.

Field code:

array(
    'id'         => 'social_networks',
    'type'       => 'sortable',
    'title'      => '',
    'label'      => true,
    'options'    => array(
        'facebook'  => '',
        'instagram' => '',
    ),
    'validate'   => 'no_html', // odd man out
    'full_width' => true,
),

paulthecoder avatar May 18 '15 23:05 paulthecoder

Many of the validation checks no longer work with ajax_save. This is one of them. There is no way to know if or when this can ever be addressed. The amount of work required to make real time validation work properly is considerable.

kprovance avatar May 19 '15 00:05 kprovance