Skip to content
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

JS Error with ACF Pro #733

Open
pressoholics opened this issue May 9, 2017 · 3 comments
Open

JS Error with ACF Pro #733

pressoholics opened this issue May 9, 2017 · 3 comments
Labels

Comments

@pressoholics
Copy link

pressoholics commented May 9, 2017

When using ACF Pro repeater field a JS error is generated when the user clicks on the ACF button to add a new repeater row:

https://cl.ly/3K2P2S0d0j2s
acf-pro

Only 2 plugins active are:

ACF Pro v5.5.13

Shortcake v0.7.2

@goldenapples
Copy link
Contributor

Question: are you using the SELECT2_NOCONFLICT mode? If not, can you try defining the constant flag which enables that mode, and see if it clears up the problem?

The method $.select2('destroy') method belongs to the Select2 API from version 3.x. We're enqueueing Select2 at 4.0.3, so the ACF plugin isn't getting the version of the library it expects to be loaded. Defining the "noconflict" flag will allow both both versions of the library to be loaded in separate namespaces.

@htrex
Copy link

htrex commented Sep 8, 2017

ACF Pro v.5.6.0 Updated Select2 JS library to v4
Changelog > https://www.advancedcustomfields.com/blog/acf-pro-5-6-0-update/

@htrex
Copy link

htrex commented Sep 19, 2017

@goldenapples after some testing with ACF >= 5.6.0 I'm not seeing this issue anymore, I think you can close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants