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
[md-select] v-model in @md-selected returns previous value #1275
Comments
Do you using 1.0.0-beta7 version? I tested it and its working normally. |
Its 1.0.0-beta7 |
The md-select is not a multiple one but a single value select. https://codepen.io/zapping/pen/yPdKvW This issue, #1262, exists for me as well when rendering from backend service. |
In your case, mdSelected () {
this.paymentMode = this.paymentModes;
console.log(this.paymentModes);
}
mdSelected (val) {
this.paymentMode = val;
console.log(val);
} and your would get the right value. updated: This event should be emitted after the value changed. |
What would go into the parameter |
Thank you. Figured it. Its working now. |
No problem. I already sent a PR for fixing the event emit time. Your original code will work after it merged. |
If you try to get the value of v-model in the @md-selected event of md-select then it always shows the previous value and not the current selected one.
Is it possible to get the current value of v-model like in the @change event of select in vuejs?
The text was updated successfully, but these errors were encountered: