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's "tags: true" isn't supported #589

Open
m417z opened this issue Aug 1, 2019 · 1 comment
Open

Select2's "tags: true" isn't supported #589

m417z opened this issue Aug 1, 2019 · 1 comment

Comments

@m417z
Copy link
Contributor

m417z commented Aug 1, 2019

Select2 allows dynamic option creation by setting tags: true. Unfortunately it doesn't work well with yadcf, since the select box is re-created on each selection, and the newly created dynamic option gets removed.

For example, here's a demo:
https://jsfiddle.net/zjk2a4u9/

As you can see in the gif below, inserting "i" as a new option works, but the option is not preserved and the select box becomes empty:

2019-08-01_09-30-24

@vedmack
Copy link
Owner

vedmack commented Nov 21, 2019

@m417z you might wanna look the following issue that was opened / resolved, maybe you can use the same technique to refresh the filter #602.

Or debug yadcf and try to call init on that filter like in initializeSelectPlugin function

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

No branches or pull requests

2 participants