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

Defaults required in Color Gradient

Open mstoic opened this issue 11 years ago • 2 comments

The color gradient field gives error if no default values are passed. In my case, I don't want default values to be set. This is because I generate gradient if the fields are set, and because of default values, they are always set. Is there a workaround?

mstoic avatar Dec 26 '14 18:12 mstoic

We're a little strapped right now. Find a solution and give us a pull request and we'll merge it in. :)

dovy avatar Dec 26 '14 18:12 dovy

You MUST set the default, however, if you set the defaults to blank, it should work fine. I tried it, no errors.

                        'default'   => array(
                            'from'      => '',
                            'to'        => ''
                        )

kprovance avatar Dec 26 '14 19:12 kprovance