redux-framework
redux-framework copied to clipboard
Defaults required in Color Gradient
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?
We're a little strapped right now. Find a solution and give us a pull request and we'll merge it in. :)
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' => ''
)