-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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.destroy does not seem to reset everything correctly #1257
Comments
I also verified, selectize's event listeners are not being properly detached from jQuery. When you run |
closing stale issues older than one year. |
Issue is still Here in version 0.15.2. Not completed at all. I found the reason in the code: You can change the destroy or the setup function as you wish. Workaround: require([
'jquery',
'selectize'
], function ($, selectize) {
...
input_jquery[0].selectize.destroy();
selectize.count++;
...
}) |
I did:
(or gave a link to a demo on the Selectize docs)
like below
The problem is shown in the following jsfiddle: https://jsfiddle.net/prtome/0cv893cr/10/
Steps to reproduce:
I would have expected that after calling cancel, and thus destroying, and recreating the selectize, I would have again the same result with single. It seems like if destroy is not resetting completely the options.
Tests have run on safari and Chrome
Thank you
The text was updated successfully, but these errors were encountered: