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

Using Select2 with ajax load multiselect my tags are removed instantly. #530

Closed
VictorioBerra opened this issue Jan 3, 2019 · 6 comments

Comments

@VictorioBerra
Copy link

VictorioBerra commented Jan 3, 2019

0.9.4.beta.12

http://jsfiddle.net/Lord_Zero/p1c0j59k/1/

Click the API search box and select an item. Its REALLY fast but the tag gets added, and suddenly removed.

Proof it gets added:

image

If you break on subtree modifications on select2-selection__rendered (Chrome dev tools) you will see it.

image

@VictorioBerra
Copy link
Author

@vedmack Please let me know if I can provide any additional information. I think its an easy fix.

@VictorioBerra
Copy link
Author

@vedmack How is this an enhancement and not a bug? The docs show support for select2 and multi_select.

@vedmack
Copy link
Owner

vedmack commented Jan 9, 2019

@VictorioBerra the label is not that important (you can see that I have fixed / added enough enhancements to yadcf), I labeled it as enhancement because you can't expect me to support out of the box the entire select2 api, in your case the issue seems to be the result of the select2 ajax usage (instead of datatables ajax data).

Having said that I will try (already began) to fix it

@VictorioBerra
Copy link
Author

Thanks @vedmack

@vedmack vedmack changed the title Using Select2 multiselect my tags are removed instantly. Using Select2 with ajax load multiselect my tags are removed instantly. Jan 10, 2019
@vedmack
Copy link
Owner

vedmack commented Jan 10, 2019

fixed in 0.9.4.beta.13 let me know if you using the npm and I will update the bata in it too

@VictorioBerra
Copy link
Author

I am not using NPM for this package, thanks for knocking this out so quickly.

vedmack added a commit that referenced this issue Jan 17, 2019
issues fix

    #530 - Using Select2 with ajax load multiselect my tags are removed instantly.
    #531   - Ctrl+A does not work inside text searches.
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