Skip to content

Conversation

@dguenther
Copy link
Contributor

I ran into an issue while using selectize where I wanted to render options based on the value set in a previous selectize (e.g. when a school course is chosen, show the times for that course). Calling refreshOptions wouldn't re-render the options because they were cached. I had to clear the renderCache manually, then the render function would get called next time the list was opened.

If this is expected behavior, I think providing a documented method to do so might be clearer. If this doesn't fit in with the intentions of selectize, feel free to close the PR or post any changes you'd like me to make.

brianreavis added a commit that referenced this pull request Jun 1, 2014
Added a clearCache method to clear the render cache
@brianreavis brianreavis merged commit c41c2d4 into selectize:master Jun 1, 2014
@brianreavis
Copy link
Member

Excellent addition! Thanks, Derek.

@brianreavis
Copy link
Member

This is now a part of v0.10.0 and above.

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

Successfully merging this pull request may close these issues.

2 participants