-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Wrapper Component example didn't set corresponding item after component mounted #760
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
Comments
Thanks. Was facing the same issue. Your patch resolves the issue. |
@arthow4n This looks great! I'd accept a pull request if you want the credit. 🙂 |
kazupon
pushed a commit
that referenced
this issue
Apr 5, 2017
potato4d
pushed a commit
to potato4d/jp.vuejs.org
that referenced
this issue
Apr 5, 2017
re-fort
pushed a commit
to vuejs/jp.vuejs.org
that referenced
this issue
Apr 6, 2017
maks-rafalko
pushed a commit
to infection/site
that referenced
this issue
Jun 29, 2017
landry-some
added a commit
to landry-some/site
that referenced
this issue
Oct 20, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behavior
Inside the JSFiddle example of Wrapper Component mentioned in Wrapper Component — Vue.js,
If I edit the JavaScript source in line 34, changing
data.selected
from 0 to 2, and run again, select2 doesn't set corresponding itemWorld
to selected after component mounted.Performing
setTimeout(() => { vm.selected = 2 }, 1000);
at the end of script also didn't make select2 set corresponding item to selected.Expected behavior
Should make select2 select corresponding item after component mounted and on model
selected
change.Patched demo is here: https://jsfiddle.net/fruqrvdL/456/
The text was updated successfully, but these errors were encountered: