We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
2.5.16
https://jsfiddle.net/jacobgoh101/g5bv0esd/1/
Using .sync modifier for an array of objects in a v-for loop
.sync modifier should update parent's data
.sync modifier doesn't update parent's data
Manually adding events handler works. But .sync modifier doesn't.
The text was updated successfully, but these errors were encountered:
It should be $emit('update:itemAttribute', value), see https://jsfiddle.net/g5bv0esd/5/
$emit('update:itemAttribute', value)
Sorry, something went wrong.
@javoski Please consider re-opening. The official guide, in the same section where the .sync is documented, states:
.sync
... we recommend you always use kebab-case for event names.
This has bitten me as well. Either the docs needs fixing or the code does.
@feliperaul vuejs/v2.vuejs.org#1648
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
Version
2.5.16
Reproduction link
https://jsfiddle.net/jacobgoh101/g5bv0esd/1/
Steps to reproduce
Using .sync modifier for an array of objects in a v-for loop
What is expected?
.sync modifier should update parent's data
What is actually happening?
.sync modifier doesn't update parent's data
Manually adding events handler works. But .sync modifier doesn't.
The text was updated successfully, but these errors were encountered: