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

Color field empty after unchecking transparent option

Open paulthecoder opened this issue 12 years ago • 6 comments

Redux: v.3.2.9.15 (Latest) WordPress: 3.9 dev_mode: true

array(
    'id'          => 'header_color',
    'type'        => 'color',
    'title'       => __('Header Color', 'redux-framework-demo'),
    'subtitle'    => __('Select the header color of your website.', 'redux-framework-demo'),
    'default'     => '#FFFFFF',
    'validate'    => 'color',
),

When a user has the transparent checkbox selected in the color field, then deselects it, the color field input box stays empty. This results in the option returning an empty string. It would be great when the user deselects transparency it could either:

  1. Go back to the default.
  2. Go back to the previous value the user had chosen before they selected transparency.

paulthecoder avatar May 26 '14 19:05 paulthecoder

Hmm. I guess I could make it go back to default... Kind of a pain for a small use case especially when they have a go back to default option. ;)

dovy avatar May 26 '14 20:05 dovy

Yea going back to default would be perfect.

paulthecoder avatar May 26 '14 23:05 paulthecoder

Latest push v3.2.9.17 fixes this. It restores the last chosen color (not the default).

kprovance avatar May 27 '14 03:05 kprovance

Let's make it so if the last isn't selected, the default is chosen. ;)

dovy avatar May 27 '14 03:05 dovy

ok, done

kprovance avatar May 27 '14 04:05 kprovance

Awesome.

dovy avatar May 27 '14 04:05 dovy