-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizer doesn't load if ACF (Pro) is active #1302
Comments
what kind of controls are you using? |
I've just created a new site and was only using a textarea field. |
@mapsteps, add this to your functions.php and update ACF Pro to the latest version:
It will force ACF Pro to use the latest version of select2. |
@hellor0bot, that works for me, thanks! I am running the latest ACF Pro version. Just tried it on a fresh install and figured that the error occurs by just having ACF Pro activated. Thanks again! |
Added to the plugin too 👍 |
@aristath Glad I could be helpful :) I think we should specifically target the customizer view by adding this:
The reason, why Elliot from ACF doesn't update Select to v4 is because the v4 doesn't have the sorting feature. ACF obviously enqueues its Select2 script for supporting widgets in the Customizer. So we can override the Select2 version for ACF Pro only on the Customizer screen with the conditional tag. I've just tested it and its' working fine. |
Done. 👍 |
fixed |
Hey @aristath, not sure if this can be removed. I've just discovered that ACF updated the Select2 js library to v4 |
(y) removed. |
Issue description:
Hey there,
figured that the customizer gets stuck, throwing the following error if ACF Pro (not tested with the regular version) is active:
"Error: Option 'data' is not allowed for Select2 when attached to a element." Version used: Latest dev
The text was updated successfully, but these errors were encountered: