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

JS error on removing item in multi-select box with select2 #492

Closed
JeroenvO opened this issue Sep 4, 2018 · 0 comments
Closed

JS error on removing item in multi-select box with select2 #492

JeroenvO opened this issue Sep 4, 2018 · 0 comments

Comments

@JeroenvO
Copy link
Contributor

JeroenvO commented Sep 4, 2018

Just for future reference, this issue was also a problem with yadcf: select2/select2#4014

When removing an item in the multi select box, an error appears in console. Adding an item does not give an error.
The filter works perfectly, it is just that an error is produced.
See: https://jsfiddle.net/jeroenvo/bzc853hc/75/

In firefox gives: typeError: self.dataAdapter is null
In edge gives: Unable to get property 'query' of undefined or null reference
In chrome gives: Uncaught TypeError: Cannot read property 'query' of null

Cause: data('select2') was removed from select2 plugin which is checked in https://github.com/vedmack/yadcf/blob/master/src/jquery.dataTables.yadcf.js#L783

It is fixed in https://github.com/select2/select2/releases/tag/4.0.6-rc.1

@JeroenvO JeroenvO closed this as completed Sep 4, 2018
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

1 participant