-
-
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
Re initialize with all options in the select #431
Comments
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. |
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. |
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
The text was updated successfully, but these errors were encountered: