Re initialize with all options in the select
When a select is updated with new options, how can i re initialize the selectize instance to have the selectize updated with all the new options in the select? refreshOptions doesnt seem to do it and destroying the selectize and instansiating it again seems to remove all options.
Thanks
Are you changing the options or the items (setValue / clear)? If the latter, try calling refreshItems() afterwards. (#438)
Were you able to get this to work I am having the same issue. I get a list but the most accurate answer highlights, but does not come to the top. For example if I search New Zealand, New York populates to the top of the list and I have to scroll to New Zealand.
Same issue. Here is a fiddle showing the issue.
http://jsfiddle.net/vb7a81er/2/
It sounds like @andriijas was asking for the ability to reload the state of the select element from which it was originally initialized in order to pick up new or changed options. That feature is also discussed in issue #991.
closing stale issues older than one year. If this issue was closed in error please message the maintainers. All issues must include a proper title, description, and examples.