reduxframework / customizer-integration

0 stars 0 forks source link

Color RGBA field requires color or color_gradient field in order to work in Customizer. #17

Open burnmaniac opened 7 years ago

burnmaniac commented 7 years ago

Okay, I am sorry for not providing URL issue.

Support Hash

http://support.redux.io/?id=qC07phtclxrvvF1TUjQDLlEAoGyWEQ7uS8Oe4gUy7H3W71ghD4VimQX3k7V6rzjKrvP8xj2lqR%2FgEKiT9IZJRg%3D%3D

Steps to reproduce

Any Error Details (PHP/JavaScript)

Uncaught ReferenceError: redux is not defined
    at field_color_rgba.js?ver=1490834438:4
    at field_color_rgba.js?ver=1490834438:217
Uncaught ReferenceError: redux is not defined
    at field_options_object.js?ver=4.0:6
    at field_options_object.js?ver=4.0:44
Uncaught ReferenceError: redux is not defined
    at field_import_export.js?ver=4.0:6
    at field_import_export.js?ver=4.0:198
burnmaniac commented 7 years ago

I have tried now to enqueue redux-field-color-js and wp-color-picker in field_color_rgba.php's public function enqueue() and the field is working as expected.

burnmaniac commented 7 years ago

Okay, the fix: File: ReduxCode/inc/fields/color_rgba/field_color_rgba.php Method: enqueue() Line: 196 Current code: array( 'jquery', 'redux-spectrum-js' ), Fix suggestion: array( 'jquery', 'redux-js', 'redux-spectrum-js' ),

Thank you in advance.