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

Select2 Ajax dropdown Bugs #44

Closed
TnCoders opened this issue Jan 15, 2017 · 4 comments
Closed

Select2 Ajax dropdown Bugs #44

TnCoders opened this issue Jan 15, 2017 · 4 comments

Comments

@TnCoders
Copy link

Hi, We have problem working with Select2 using jquery Repeater.

When clicking on button "Add" to repeat the form, the select2 dropdown is not working it's not initialised. how we can do this ?

@heohni
Copy link

heohni commented Jan 25, 2017

HI, I have the same issue! Did you already found a solution?

@TnCoders
Copy link
Author

No sorry heohni i was forced to pass the amount of reapter in the url and create them in PHP without jquery ;:( if you found a solution please post it here

@viveroni
Copy link

show: function () { $(this).find('.chosen').chosen({ width: "100%", disable_search: true }); $(this).slideDown(); }

@DubFriend
Copy link
Owner

DubFriend commented Feb 10, 2017

Yea the library isnt well designed for some of the more exotic input types. But as viveroni points out, the on "show" callback gives you a hook to patch things up, and add your own custom behavior.

Just to clarify, the value of "this" in the "show" callback is a reference to the html element of the newly created item.

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