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

Selectize bug (initSelectPluginCustomTriggers 'select_type': 'custom_select' ) #522

Closed
joneidejohnsen opened this issue Dec 2, 2018 · 6 comments

Comments

@joneidejohnsen
Copy link

I'm still experiencing the problem with Selectize as a custom_select, as described here: https://stackoverflow.com/questions/35830152/yadcf-custom-select-selectize-bizarre-behavior?rq=1

Has anyone managed to find a solution for this?

@vedmack
Copy link
Owner

vedmack commented Dec 3, 2018

please post an updated jsfiddle sample test with the latest yadcf beta

@joneidejohnsen
Copy link
Author

See https://jsfiddle.net/joneidejohnsen/xpvt214o/981183/.

I'm also experiencing the same problem using bootstrap-select (https://github.com/snapappointments/bootstrap-select/) as a custom selector.

@joneidejohnsen
Copy link
Author

joneidejohnsen commented Dec 9, 2018

I would appreciate if you can confirm that this is actually a bug, or if it is due to a misconfiguration from my side.

@vedmack vedmack changed the title Selectize bug Selectize bug (initSelectPluginCustomTriggers 'select_type': 'custom_select' ) Dec 12, 2018
@vedmack
Copy link
Owner

vedmack commented Dec 12, 2018

fixed in 0.9.4.beta.11 (npm beta module not updated yet)

@vedmack
Copy link
Owner

vedmack commented Dec 12, 2018

@joneidejohnsen see working jsfiddle, I also fixed your selectize init functions so take a look

http://jsfiddle.net/vedmack/a6jobz9p/12/

`

 $(document).ready(function() {
    table = $('#example').DataTable();


yadcf.initSelectPluginCustomTriggers(
  function($filterSelector) {
    $filterSelector.selectize({});
  },
  function($filterSelector) {
    $filterSelector.selectize()[0].selectize.destroy();
    $filterSelector.selectize({});
  },
  function($filterSelector) {
    $filterSelector.destroy()
	}
);
yadcf.init(table, [
	{
  	'column_number': 2,
		'filter_type': "multi_select",
		'select_type': 'custom_select'
	}
]);

});`

@joneidejohnsen
Copy link
Author

Thank you for the quick fix!

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