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

Compatibility with select2 4.0.6 #117

Open
flodaq opened this issue Apr 10, 2018 · 4 comments
Open

Compatibility with select2 4.0.6 #117

flodaq opened this issue Apr 10, 2018 · 4 comments

Comments

@flodaq
Copy link

flodaq commented Apr 10, 2018

The select2entity.js script seems to be incompatible with select2 4.0.6 latest update. In particular, AJAX requests are not made to the "data-ajax--url" URL but to the current HTTP page.

@kl3sk
Copy link
Contributor

kl3sk commented Apr 11, 2018

This is a Select2 issue select2/select2#5180

A RC2 is planned but i had no answer select2/select2#5180 (comment)

@karser
Copy link

karser commented May 3, 2018

select2@4.0.5 seems to be working

@Ragash
Copy link

Ragash commented May 28, 2018

same problem here with 4.0.11

@Ragash
Copy link

Ragash commented May 29, 2018

Ok, quick fix, but not a real solution:

on line 34 of select2entity.js just add:

url: $s2.data('ajax--url')

to override the settings, it will do the job

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

No branches or pull requests

4 participants