-
Notifications
You must be signed in to change notification settings - Fork 20
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
Select2 problem with ACF5 and Taxonomy multi-select field #26
Comments
I haven't looked into this yet, but is this with ACF4 or ACF5 Pro? What about the tests? |
This was tested with ACF5 (see title). |
After some investigation it seems that this broke with ACF 5.6 and the switch from select2 v3 to v4. As already said in #38 I think we now have to decide if the either up the ACF PRO requirement to >=5.6 or if we attempt to fix this in a way that is compatible with all versions. Personally, especially because we're not talking about some very old version but the most recent one, I'd say we need to make this work post and pre 5.6. |
Okay this turned out to be less difficult as expected. As we already have the ACF version in JS I just call select2 differently depending on the ACF version. I've opened a new PR #45 that should fix this issue. |
Closed via #45 |
I can confirme that this is still a bug. |
Whenever a Taxonomy field is created, with multi-select as appearance, the following error is thrown:
The select2('data') method was called on an element that is not using Select2.
This is breaking all functionality, and no more data is parsed by the code.
Specifically for branch: https://github.com/Yoast/yoast-acf-analysis/tree/features/acf-5
/cc @kraftner
The text was updated successfully, but these errors were encountered: