Skip to content

Bug in select2 wrapper component example (on options changed) #1144

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

Merged
merged 2 commits into from
Sep 21, 2017

Conversation

morcs
Copy link
Contributor

@morcs morcs commented Sep 20, 2017

I found when using this - if the options change after rendering, the new set gets appended to the existing set rather than replacing them. Adding the empty() call in the options watch solved this.

I'm not sure how to update the jsfiddle so I linked to my fork of it, happy to change as needed!

@chrisvfritz
Copy link
Contributor

Thanks! I just forked your fork, as we like to keep the fiddles under member accounts for security reasons. 🙂

@chrisvfritz chrisvfritz merged commit f155cc6 into vuejs:master Sep 21, 2017
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Oct 1, 2017
…1144) (vuejs#349)

* tweak ad styling

* Bug in select2 wrapper component example (on options changed) (vuejs#1144)

* Update select2.md

* Update multiselect example of fiddle
@md5
Copy link

md5 commented Nov 16, 2018

This approach ends up throwing out any additional options that are passed in via the <slot>, unfortunately.

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.

3 participants