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

No tag created between <option selected> and data array in script #3955

Closed
boubou1030 opened this issue Nov 23, 2015 · 3 comments
Closed

No tag created between <option selected> and data array in script #3955

boubou1030 opened this issue Nov 23, 2015 · 3 comments

Comments

@boubou1030
Copy link

I use Select2 4.0.1-rc.1.
The data: ["Clare","Cork","South Dublin"] is defined in javascript.
The selected option "Cork" is derived from database in html.
I would like to show "Cork" in tag, however, this tag didn't be shown.
I'm wondering how to solve this problem? Thanks.
https://jsfiddle.net/Lroq1oac/1/

But it works in Select2 4.0.0
https://jsfiddle.net/r7cop362/

@boubou1030
Copy link
Author

This question is specific and simple, just wondering if there is any
keyword or related issue number so that I can look it up? Thanks.

@kevin-brown
Copy link
Member

This is a duplicate of #3990 (picked that ticket because it is general).

@boubou1030
Copy link
Author

Thanks! Hope it will be fixed soon.

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

2 participants