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

Re initialize with all options in the select #431

Closed
andriijas opened this issue May 22, 2014 · 5 comments
Closed

Re initialize with all options in the select #431

andriijas opened this issue May 22, 2014 · 5 comments

Comments

@andriijas
Copy link

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

@nlwillia
Copy link

Are you changing the options or the items (setValue / clear)? If the latter, try calling refreshItems() afterwards. (#438)

@shannahutch
Copy link

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.

@bubb-rubb
Copy link
Contributor

Same issue. Here is a fiddle showing the issue.

http://jsfiddle.net/vb7a81er/2/

@mcavalletto
Copy link

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.

@risadams
Copy link
Contributor

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.

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

6 participants